(* Content-type: application/vnd.wolfram.mathematica *)

(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)

(* CreatedBy='Mathematica 8.0' *)

(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[       157,          7]
NotebookDataLength[    652086,      12922]
NotebookOptionsPosition[    626959,      12240]
NotebookOutlinePosition[    627415,      12257]
CellTagsIndexPosition[    627372,      12254]
WindowFrame->Normal*)

(* Beginning of Notebook Content *)
Notebook[{

Cell[CellGroupData[{
Cell["Hopsan Develop Components", "Title",
 CellChangeTimes->{{3.4779983420160294`*^9, 3.4779983526597185`*^9}, {
  3.57574170486287*^9, 3.575741706828474*^9}, {3.576858732396096*^9, 
  3.5768587357162857`*^9}}],

Cell[CellGroupData[{

Cell["General", "Section",
 CellChangeTimes->{{3.5719269675877132`*^9, 3.5719269908317537`*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}]}], "Input",
 CellChangeTimes->{3.522605694171875*^9, 3.571926984357743*^9}],

Cell[BoxData[
 RowBox[{"<<", "C:\\\\Hopsan\\Compgen\\CompgenNG06.mx"}]], "Input",
 CellChangeTimes->{{3.5772037650720577`*^9, 3.5772037650780582`*^9}}],

Cell[BoxData[
 RowBox[{"Off", "[", 
  RowBox[{"General", "::", "\"\<spell1\>\""}], "]"}]], "Input",
 PageWidth->WindowWidth],

Cell[BoxData[
 RowBox[{
  RowBox[{"path", "=", 
   RowBox[{"ToFileName", "[", 
    RowBox[{"{", 
     RowBox[{
     "\"\<C:\>\"", ",", "\"\<HopsanTrunk\>\"", ",", "\"\<HOPSAN++\>\"", ",", 
      "\"\<componentLibraries\>\"", ",", "\"\<devLibraries\>\"", ",", 
      "\"\<PettersMatematica\>\""}], "}"}], "]"}]}], ";"}]], "Input",
 CellChangeTimes->{3.5772059836159515`*^9}],

Cell[CellGroupData[{

Cell["Definitions to deal with cavitation", "Subsection",
 PageWidth->WindowWidth,
 CellChangeTimes->{{3.51582117543931*^9, 3.5158211986111856`*^9}}],

Cell["\<\
c1e  = onPositive[p1]c1;\tZc1e = onPositive[p1]Zc1;
c2e  = onPositive[p2]c2;\tZc2e = onPositive[p2]Zc2;
c3e  = onPositive[p3]c3;\tZc3e = onPositive[p3]Zc3;\t
c4e  = onPositive[p4]c4;\tZc4e = onPositive[p4]Zc4;\t
c5e  = onPositive[p5]c5;\tZc5e = onPositive[p5]Zc5;\t
c6e  = onPositive[p6]c6;\tZc6e = onPositive[p6]Zc6;\t
c7e  = onPositive[p7]c7;\tZc7e = onPositive[p7]Zc7;\t
c8e  = onPositive[p8]c8;\tZc8e = onPositive[p8]Zc8;\t
c9e  = onPositive[p9]c9;\tZc9e = onPositive[p9]Zc9;

cpe  = onPositive[pp]cp;\tZcpe = onPositive[pp]Zcp;
cte  = onPositive[pt]ct;\tZcte = onPositive[pt]Zct;
cae  = onPositive[pa]ca;\tZcae = onPositive[pa]Zca;
cbe  = onPositive[pb]cb;\tZcbe = onPositive[pb]Zcb;
clse  = onPositive[pls]cls;\tZclse = onPositive[pls]Zcls;
cocpe  = onPositive[pocp]cocp;\tZcocpe = onPositive[pocp]Zcocp;
cocte  = onPositive[poct]coct;\tZcocte = onPositive[poct]Zcoct;\
\>", "Input",
 PageWidth->WindowWidth,
 CellChangeTimes->{{3.5058230242546153`*^9, 3.5058230333948307`*^9}, {
  3.515752936778079*^9, 3.515752984887762*^9}, {3.5159004613332157`*^9, 
  3.515900471411276*^9}, {3.528190529296875*^9, 3.528190549421875*^9}, {
  3.571993710119341*^9, 3.5719937938918777`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"path", "=", 
   RowBox[{"ToFileName", "[", 
    RowBox[{"{", 
     RowBox[{
     "\"\<C:\>\"", ",", "\"\<HopsanTrunk\>\"", ",", "\"\<HOPSAN++\>\"", ",", 
      "\"\<componentLibraries\>\"", ",", "\"\<devLibraries\>\"", ",", 
      "\"\<PettersMatematica\>\""}], "}"}], "]"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.5757727777685804`*^9, 3.575772792541806*^9}, {
   3.5757728423954945`*^9, 3.5757728498367076`*^9}, {3.57577333888545*^9, 
   3.5757733706315055`*^9}, 3.5757734316206255`*^9, {3.575776746610216*^9, 
   3.57577674854722*^9}, {3.5758034373456383`*^9, 3.5758034687537785`*^9}, {
   3.576215264226413*^9, 3.576215290909748*^9}, 3.5762159970228434`*^9, 
   3.5762161142905693`*^9, {3.576241302105707*^9, 3.5762413026985083`*^9}}]
}, Open  ]]
}, Open  ]],

Cell[CellGroupData[{

Cell["Volume2", "Section",
 CellChangeTimes->{{3.4785828348125*^9, 3.478582896703125*^9}, {
  3.5159023652393904`*^9, 3.5159023668175154`*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<Volume2\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"brief", "=", "\"\<Hydraulic volume with two connection\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentC\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{"ResetComponentVariables", "[", "]"}]}], "Input",
 CellChangeTimes->{
  3.5042704357554045`*^9, {3.5159023742081404`*^9, 3.5159024232706404`*^9}, {
   3.51670646940555*^9, 3.516706478608675*^9}, 3.5684505041258545`*^9, 
   3.571905458607195*^9, {3.571926377672677*^9, 3.5719263778442774`*^9}, {
   3.575772058707899*^9, 3.5757720838551435`*^9}}],

Cell[CellGroupData[{

Cell["Model", "Subsection",
 CellChangeTimes->{{3.5159024543018904`*^9, 3.5159024592393904`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", "\t", 
    RowBox[{
     RowBox[{"HydraulicCnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Upstream port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", "\t", 
     RowBox[{"HydraulicCnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Downstream port\>\""}], "]"}]}],
     "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.4752292939381866`*^9, 3.4752293318441935`*^9}, {
   3.47808399728125*^9, 3.478083998921875*^9}, 3.4988885288475237`*^9, {
   3.50394176215625*^9, 3.503941811890625*^9}, {3.50427113076719*^9, 
   3.50427113339219*^9}, 3.50427121389219*^9, {3.51582103693931*^9, 
   3.5158210378611856`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{"Zc", ",", 
       RowBox[{"1.0", "*", 
        RowBox[{"10", "^", "9"}]}], ",", "double", ",", "\"\< \>\"", ",", 
       "\"\<Characteristic impedance\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "timeDelay", ",", "0.1", ",", "double", ",", "\"\<s\>\"", ",", 
       "\"\<Time delay\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "alpha", ",", "0.0", ",", "double", ",", "\"\<1/s \>\"", ",", 
       "\"\<Damp. factor\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "timestep", ",", "0.001", ",", "double", ",", "\"\<s\>\"", ",", 
       "\"\<Simulation time step\>\""}], "}"}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.},
 CellChangeTimes->{{3.4779981058619356`*^9, 3.4779981542683554`*^9}, 
   3.4780017782035847`*^9, {3.478002203430644*^9, 3.478002217153696*^9}, {
   3.478002277203772*^9, 3.4780023021490927`*^9}, {3.4780026209521627`*^9, 
   3.478002664340765*^9}, {3.478021796078125*^9, 3.478021842203125*^9}, {
   3.478021885296875*^9, 3.47802199571875*^9}, {3.47802539628125*^9, 
   3.478025479125*^9}, {3.478026054375*^9, 3.47802606034375*^9}, {
   3.47818056640625*^9, 3.47818064359375*^9}, {3.478184752578125*^9, 
   3.478184788859375*^9}, {3.4781848254375*^9, 3.47818487890625*^9}, {
   3.47818496809375*^9, 3.478184980140625*^9}, {3.478189354859375*^9, 
   3.478189379078125*^9}, {3.478582964046875*^9, 3.478583058015625*^9}, {
   3.47858310040625*^9, 3.478583226265625*^9}, {3.47858493834375*^9, 
   3.478584967203125*^9}, {3.478593422734375*^9, 3.47859344625*^9}, {
   3.478593494703125*^9, 3.478593496375*^9}, {3.47859361503125*^9, 
   3.478593622828125*^9}, {3.478593687*^9, 3.4785936875*^9}, {
   3.47860846046875*^9, 3.478608468515625*^9}, {3.478614677703125*^9, 
   3.478614712453125*^9}, {3.47861477634375*^9, 3.4786147769375*^9}, {
   3.47861500284375*^9, 3.478615012546875*^9}, 3.50427041823978*^9, {
   3.504271184564065*^9, 3.50427119129844*^9}, {3.504271245001565*^9, 
   3.50427125876719*^9}, 3.515900544738135*^9, {3.5166988869943166`*^9, 
   3.516698893900699*^9}, 3.516707238308592*^9, 3.571905380107857*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"initialExpressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"c1", "==", "p1"}], ",", "\[IndentingNewLine]", 
     RowBox[{"c2", "==", "p2"}], ",", "\[IndentingNewLine]", 
     RowBox[{"c1f", "==", "p1"}], ",", "\[IndentingNewLine]", 
     RowBox[{"c2f", "==", "p2"}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.51681842278125*^9, 3.516818476890625*^9}, 
   3.516818573890625*^9, {3.5719053860202675`*^9, 3.5719054030866976`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"localExpressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"c10", "==", 
      RowBox[{"c2", "+", 
       RowBox[{"2", " ", "Zc", " ", "q2"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"c20", "==", 
      RowBox[{"c1", "+", 
       RowBox[{"2", " ", "Zc", " ", "q1"}]}]}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.47858332371875*^9, 3.478583443984375*^9}, {
   3.478596512125*^9, 3.478596630296875*^9}, {3.47859673825*^9, 
   3.4785967756875*^9}, {3.478596964234375*^9, 3.478596992640625*^9}, 
   3.478597029796875*^9, {3.478600289875*^9, 3.47860030565625*^9}, {
   3.51582105284556*^9, 3.51582105678306*^9}, {3.5159004728175173`*^9, 
   3.515900475551874*^9}, {3.5159009659499717`*^9, 3.515900975043605*^9}, {
   3.5159024812862654`*^9, 3.5159025043018904`*^9}, {3.5167064051243*^9, 
   3.516706412796175*^9}, {3.516818175265625*^9, 3.51681819540625*^9}, {
   3.516818378453125*^9, 3.516818390015625*^9}, {3.5719054097791095`*^9, 
   3.5719054179223237`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"c1", "==", "c1f"}], ",", "\[IndentingNewLine]", 
     RowBox[{"c2", "==", "c2f"}], ",", "\[IndentingNewLine]", 
     RowBox[{"c1f", "==", 
      RowBox[{
       RowBox[{"alpha", " ", "c1f"}], " ", "+", 
       RowBox[{
        RowBox[{"(", 
         RowBox[{"1.0", "-", "alpha"}], ")"}], " ", "c10"}]}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"c2f", "==", 
      RowBox[{
       RowBox[{"alpha", " ", "c2f"}], " ", "+", 
       RowBox[{
        RowBox[{"(", 
         RowBox[{"1.0", "-", "alpha"}], ")"}], " ", "c20"}]}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"Zc1", "==", "Zc"}], ",", "\[IndentingNewLine]", 
     RowBox[{"Zc2", "==", "Zc"}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.47858332371875*^9, 3.478583443984375*^9}, {
   3.478596512125*^9, 3.478596630296875*^9}, {3.47859673825*^9, 
   3.4785967756875*^9}, {3.478596964234375*^9, 3.478596992640625*^9}, 
   3.478597029796875*^9, {3.478600289875*^9, 3.47860030565625*^9}, {
   3.51582105284556*^9, 3.51582105678306*^9}, {3.5159004728175173`*^9, 
   3.515900475551874*^9}, {3.5159009659499717`*^9, 3.515900975043605*^9}, {
   3.5159024812862654`*^9, 3.5159025043018904`*^9}, {3.5167064051243*^9, 
   3.516706412796175*^9}, {3.516818200453125*^9, 3.5168182011875*^9}, {
   3.516818238359375*^9, 3.5168182486875*^9}, {3.51681829715625*^9, 
   3.516818360484375*^9}, 3.516818397609375*^9, {3.5719054223839316`*^9, 
   3.5719054467979746`*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input",
 CellChangeTimes->{3.5039025691670113`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \\\"HydraulicVolume2\\\"\\)\\), \
\\(\\(\\\"displayname\\\" \[Rule] \\\"HydraulicVolume2\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicVolume2.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicVolume2.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P1\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.6666666666666666`\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \\(\\({}\
\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\\"version\\\" \[Rule] \\\"0.1\\\"}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\\\"typename\\\" \
\[Rule] \\\"HydraulicVolume2\\\"\\)\\), \\(\\(\\\"displayname\\\" \[Rule] \
\\\"HydraulicVolume2\\\"\\)\\)}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\
\\\", \\(\\({\\(\\(\\\"isopath\\\" \[Rule] \
\\\"HydraulicVolume2.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\
\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicVolume2.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P1\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.6666666666666666`\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \\(\\({}\
\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\
\[NoBreak] is not a list of contents. The third item in an XMLElement must be \
a list of contents, even if it is an empty list. \\!\\(\\*ButtonBox[\\\"\
\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5719772217781134`*^9, 3.5756490990611706`*^9, 3.575651855006559*^9, 
   3.575716164804755*^9, 3.5757162192335043`*^9, 3.5757266100333047`*^9, 
   3.5757719989909945`*^9, 3.5757721856449223`*^9, 3.5757724057351866`*^9, 
   3.575772539240221*^9, 3.5757726373892403`*^9, 3.5758602632686234`*^9, 
   3.576214801682736*^9, {3.576214841338736*^9, 3.5762148665017357`*^9}, 
   3.5762154609532423`*^9, {3.5762155675078964`*^9, 3.5762155762397695`*^9}, 
   3.57621592198134*^9, 3.576216002397381*^9, 3.576216058336974*^9, 
   3.576216158149739*^9, 3.576216875232665*^9, 3.5762169607982206`*^9, 
   3.5762170162597666`*^9, 3.576217136553795*^9, {3.5762171980389423`*^9, 
   3.576217226269765*^9}, 3.5762412304325733`*^9, 3.5762413073629165`*^9, {
   3.5762413786668873`*^9, 3.5762414007097263`*^9}, 3.5762414761670585`*^9, 
   3.5762415543075957`*^9, 3.576921315167641*^9, 3.577611867184573*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5719772217781134`*^9, 3.5756490990611706`*^9, 3.575651855006559*^9, 
   3.575716164804755*^9, 3.5757162192335043`*^9, 3.5757266100333047`*^9, 
   3.5757719989909945`*^9, 3.5757721856449223`*^9, 3.5757724057351866`*^9, 
   3.575772539240221*^9, 3.5757726373892403`*^9, 3.5758602632686234`*^9, 
   3.576214801682736*^9, {3.576214841338736*^9, 3.5762148665017357`*^9}, 
   3.5762154609532423`*^9, {3.5762155675078964`*^9, 3.5762155762397695`*^9}, 
   3.57621592198134*^9, 3.576216002397381*^9, 3.576216058336974*^9, 
   3.576216158149739*^9, 3.576216875232665*^9, 3.5762169607982206`*^9, 
   3.5762170162597666`*^9, 3.576217136553795*^9, {3.5762171980389423`*^9, 
   3.576217226269765*^9}, 3.5762412304325733`*^9, 3.5762413073629165`*^9, {
   3.5762413786668873`*^9, 3.5762414007097263`*^9}, 3.5762414761670585`*^9, 
   3.5762415543075957`*^9, 3.576921315167641*^9, 3.5776118671865735`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.3333333333333333`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5719772217781134`*^9, 3.5756490990611706`*^9, 3.575651855006559*^9, 
   3.575716164804755*^9, 3.5757162192335043`*^9, 3.5757266100333047`*^9, 
   3.5757719989909945`*^9, 3.5757721856449223`*^9, 3.5757724057351866`*^9, 
   3.575772539240221*^9, 3.5757726373892403`*^9, 3.5758602632686234`*^9, 
   3.576214801682736*^9, {3.576214841338736*^9, 3.5762148665017357`*^9}, 
   3.5762154609532423`*^9, {3.5762155675078964`*^9, 3.5762155762397695`*^9}, 
   3.57621592198134*^9, 3.576216002397381*^9, 3.576216058336974*^9, 
   3.576216158149739*^9, 3.576216875232665*^9, 3.5762169607982206`*^9, 
   3.5762170162597666`*^9, 3.576217136553795*^9, {3.5762171980389423`*^9, 
   3.576217226269765*^9}, 3.5762412304325733`*^9, 3.5762413073629165`*^9, {
   3.5762413786668873`*^9, 3.5762414007097263`*^9}, 3.5762414761670585`*^9, 
   3.5762415543075957`*^9, 3.576921315167641*^9, 3.5776118671875734`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5719772217781134`*^9, 3.5756490990611706`*^9, 3.575651855006559*^9, 
   3.575716164804755*^9, 3.5757162192335043`*^9, 3.5757266100333047`*^9, 
   3.5757719989909945`*^9, 3.5757721856449223`*^9, 3.5757724057351866`*^9, 
   3.575772539240221*^9, 3.5757726373892403`*^9, 3.5758602632686234`*^9, 
   3.576214801682736*^9, {3.576214841338736*^9, 3.5762148665017357`*^9}, 
   3.5762154609532423`*^9, {3.5762155675078964`*^9, 3.5762155762397695`*^9}, 
   3.57621592198134*^9, 3.576216002397381*^9, 3.576216058336974*^9, 
   3.576216158149739*^9, 3.576216875232665*^9, 3.5762169607982206`*^9, 
   3.5762170162597666`*^9, 3.576217136553795*^9, {3.5762171980389423`*^9, 
   3.576217226269765*^9}, 3.5762412304325733`*^9, 3.5762413073629165`*^9, {
   3.5762413786668873`*^9, 3.5762414007097263`*^9}, 3.5762414761670585`*^9, 
   3.5762415543075957`*^9, 3.576921315167641*^9, 3.577611867188574*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.6666666666666666`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.6666666666666666`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5719772217781134`*^9, 3.5756490990611706`*^9, 3.575651855006559*^9, 
   3.575716164804755*^9, 3.5757162192335043`*^9, 3.5757266100333047`*^9, 
   3.5757719989909945`*^9, 3.5757721856449223`*^9, 3.5757724057351866`*^9, 
   3.575772539240221*^9, 3.5757726373892403`*^9, 3.5758602632686234`*^9, 
   3.576214801682736*^9, {3.576214841338736*^9, 3.5762148665017357`*^9}, 
   3.5762154609532423`*^9, {3.5762155675078964`*^9, 3.5762155762397695`*^9}, 
   3.57621592198134*^9, 3.576216002397381*^9, 3.576216058336974*^9, 
   3.576216158149739*^9, 3.576216875232665*^9, 3.5762169607982206`*^9, 
   3.5762170162597666`*^9, 3.576217136553795*^9, {3.5762171980389423`*^9, 
   3.576217226269765*^9}, 3.5762412304325733`*^9, 3.5762413073629165`*^9, {
   3.5762413786668873`*^9, 3.5762414007097263`*^9}, 3.5762414761670585`*^9, 
   3.5762415543075957`*^9, 3.576921315167641*^9, 3.577611867188574*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5719772217781134`*^9, 3.5756490990611706`*^9, 3.575651855006559*^9, 
   3.575716164804755*^9, 3.5757162192335043`*^9, 3.5757266100333047`*^9, 
   3.5757719989909945`*^9, 3.5757721856449223`*^9, 3.5757724057351866`*^9, 
   3.575772539240221*^9, 3.5757726373892403`*^9, 3.5758602632686234`*^9, 
   3.576214801682736*^9, {3.576214841338736*^9, 3.5762148665017357`*^9}, 
   3.5762154609532423`*^9, {3.5762155675078964`*^9, 3.5762155762397695`*^9}, 
   3.57621592198134*^9, 3.576216002397381*^9, 3.576216058336974*^9, 
   3.576216158149739*^9, 3.576216875232665*^9, 3.5762169607982206`*^9, 
   3.5762170162597666`*^9, 3.576217136553795*^9, {3.5762171980389423`*^9, 
   3.576217226269765*^9}, 3.5762412304325733`*^9, 3.5762413073629165`*^9, {
   3.5762413786668873`*^9, 3.5762414007097263`*^9}, 3.5762414761670585`*^9, 
   3.5762415543075957`*^9, 3.576921315167641*^9, 3.5776118671895733`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5719772217781134`*^9, 3.5756490990611706`*^9, 3.575651855006559*^9, 
   3.575716164804755*^9, 3.5757162192335043`*^9, 3.5757266100333047`*^9, 
   3.5757719989909945`*^9, 3.5757721856449223`*^9, 3.5757724057351866`*^9, 
   3.575772539240221*^9, 3.5757726373892403`*^9, 3.5758602632686234`*^9, 
   3.576214801682736*^9, {3.576214841338736*^9, 3.5762148665017357`*^9}, 
   3.5762154609532423`*^9, {3.5762155675078964`*^9, 3.5762155762397695`*^9}, 
   3.57621592198134*^9, 3.576216002397381*^9, 3.576216058336974*^9, 
   3.576216158149739*^9, 3.576216875232665*^9, 3.5762169607982206`*^9, 
   3.5762170162597666`*^9, 3.576217136553795*^9, {3.5762171980389423`*^9, 
   3.576217226269765*^9}, 3.5762412304325733`*^9, 3.5762413073629165`*^9, {
   3.5762413786668873`*^9, 3.5762414007097263`*^9}, 3.5762414761670585`*^9, 
   3.5762415543075957`*^9, 3.576921315167641*^9, 3.5776118671905737`*^9}],

Cell[BoxData["\<\"HydraulicVolume2.xml\"\>"], "Output",
 CellChangeTimes->{
  3.5039138574519997`*^9, 3.503914124369231*^9, 3.50391416132141*^9, {
   3.5039142121013603`*^9, 3.503914231054*^9}, 3.5039143839567027`*^9, 
   3.50391467889073*^9, 3.50391491576573*^9, 3.50391504976573*^9, 
   3.503915100750105*^9, 3.50391521232823*^9, 3.503915342062605*^9, 
   3.5039165229866247`*^9, 3.503920250748097*^9, 3.5039209174619017`*^9, 
   3.503921468164212*^9, 3.503921638957821*^9, 3.5039219412354736`*^9, 
   3.503922061640953*^9, 3.5039403181875*^9, 3.503940612984375*^9, 
   3.503940749578125*^9, 3.503940801671875*^9, 3.50394088853125*^9, 
   3.503941065984375*^9, {3.503941828828125*^9, 3.503941853921875*^9}, 
   3.503942046328125*^9, 3.503942156859375*^9, 3.50394237928125*^9, 
   3.503942430796875*^9, 3.50394392853125*^9, 3.503944038109375*^9, 
   3.50399561693771*^9, 3.5039977503251233`*^9, 3.5041040055625*^9, 
   3.50410412003125*^9, 3.5041042488125*^9, 3.50410434159375*^9, 
   3.504104873*^9, 3.504105025640625*^9, 3.5041053834375*^9, 
   3.504107565390625*^9, 3.504107702421875*^9, {3.504120269875*^9, 
   3.504120298453125*^9}, 3.504121377140625*^9, 3.504121677703125*^9, {
   3.50416006975*^9, 3.504160083265625*^9}, 3.50416024140625*^9, 
   3.50416130865625*^9, 3.504161664828125*^9, 3.504161729484375*^9, 
   3.504161770125*^9, 3.504161837046875*^9, 3.504162297234375*^9, {
   3.504162364671875*^9, 3.50416236865625*^9}, {3.50417101409375*^9, 
   3.504171043984375*^9}, 3.504171122828125*^9, 3.504171162609375*^9, 
   3.504171463546875*^9, 3.50417149596875*^9, {3.5041715326875*^9, 
   3.504171536578125*^9}, 3.5042447133072605`*^9, 3.504244808103628*^9, 
   3.5042449916180787`*^9, 3.504245076258162*^9, 3.50427132839219*^9, 
   3.504325391017802*^9, 3.504325736789137*^9, 3.5043258179026647`*^9, 
   3.5043258809527674`*^9, 3.504326008815399*^9, 3.50432626384675*^9, 
   3.5043297655924573`*^9, 3.50434367809375*^9, 3.504343882921875*^9, 
   3.504344316390625*^9, 3.5140083521444654`*^9, 3.5159006246741*^9, 
   3.515900654767272*^9, {3.5167071791222286`*^9, 3.5167071893564067`*^9}, {
   3.5167072314649734`*^9, 3.516707241808525*^9}, 3.516707275245383*^9, 
   3.516717008421875*^9, 3.516717079515625*^9, 3.5168184888125*^9, 
   3.516818580125*^9, 3.516818853*^9, 3.516818916875*^9, 3.516819439734375*^9,
    3.561710512242543*^9, 3.571977221809314*^9, 3.575649099091172*^9, 
   3.575651855015559*^9, 3.575716164804755*^9, 3.5757162192491045`*^9, 
   3.575726610048905*^9, 3.575771999022195*^9, 3.575772185660522*^9, 
   3.575772405750787*^9, 3.575772539255821*^9, 3.5757726374204397`*^9, 
   3.575860263362178*^9, 3.576214801780736*^9, {3.576214841364736*^9, 
   3.576214866608736*^9}, 3.576215460964243*^9, {3.576215567516897*^9, 
   3.57621557624977*^9}, 3.5762159219953413`*^9, 3.5762160024373846`*^9, 
   3.5762160583469753`*^9, 3.576216158191739*^9, 3.576216875239666*^9, 
   3.576216960827224*^9, 3.5762170162917695`*^9, 3.5762171365817976`*^9, {
   3.576217198072946*^9, 3.5762172262877674`*^9}, 3.5762412304481735`*^9, 
   3.5762413073629165`*^9, {3.5762413786824875`*^9, 3.5762414007097263`*^9}, 
   3.5762414761826587`*^9, 3.5762415543231955`*^9, 3.5769213151766415`*^9, 
   3.577611867191574*^9}]
}, Open  ]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell["TurbulentOrifice", "Section",
 CellChangeTimes->{{3.4785828348125*^9, 3.47858284740625*^9}, 
   3.47867904165625*^9, 3.5719048133276615`*^9, {3.5719049896391716`*^9, 
   3.571904993773179*^9}, {3.571925826496909*^9, 3.571925828166112*^9}}],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<TurbulentOrifice\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"brief", "=", "\"\<hydraulic sharp edged orifice component\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.507887022343302*^9, 
   3.507887057967846*^9}, {3.5078871702320337`*^9, 3.507887175028847*^9}, {
   3.5158208831437864`*^9, 3.51582092036206*^9}, {3.5158209798300486`*^9, 
   3.51582099300181*^9}, {3.522605661421875*^9, 3.522605661625*^9}, {
   3.5719048175552692`*^9, 3.571904823015279*^9}, {3.5719050007775908`*^9, 
   3.571905012306011*^9}, {3.5719258191180964`*^9, 3.5719258212709*^9}, 
   3.575772110671591*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", "\t", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Upstream port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", "\t", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Downstream port\>\""}], "]"}]}],
     "}"}]}], ";"}]], "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.},
 CellChangeTimes->{{3.4779981058619356`*^9, 3.4779981542683554`*^9}, 
   3.4780017782035847`*^9, {3.478002203430644*^9, 3.478002217153696*^9}, {
   3.478002277203772*^9, 3.4780023021490927`*^9}, {3.4780026209521627`*^9, 
   3.478002664340765*^9}, {3.478021796078125*^9, 3.478021842203125*^9}, {
   3.478021885296875*^9, 3.47802199571875*^9}, {3.47802539628125*^9, 
   3.478025479125*^9}, {3.478026054375*^9, 3.47802606034375*^9}, {
   3.47818056640625*^9, 3.47818064359375*^9}, {3.478184752578125*^9, 
   3.478184788859375*^9}, {3.4781848254375*^9, 3.47818487890625*^9}, {
   3.47818496809375*^9, 3.478184980140625*^9}, {3.478189354859375*^9, 
   3.478189379078125*^9}, {3.478679541453125*^9, 3.478679542*^9}, 
   3.47868324640625*^9, 3.478683514703125*^9, {3.4807602098503075`*^9, 
   3.480760210147073*^9}, {3.480760285603793*^9, 3.4807602892909627`*^9}, 
   3.480760331584048*^9, {3.498888542331812*^9, 3.498888576862841*^9}, {
   3.499083790077364*^9, 3.4990838046238666`*^9}, {3.503902471203904*^9, 
   3.503902488249798*^9}, {3.5039965507621307`*^9, 3.503996553952038*^9}, {
   3.522605447421875*^9, 3.522605449140625*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{"Ks", ",", 
       RowBox[{"1.0", "*", 
        RowBox[{"10", "^", 
         RowBox[{"-", "8"}]}]}], ",", "double", ",", "\"\<(m3/s)/Pa0.5\>\"", 
       ",", "\"\<Turbulent flow coeff.\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "p0", ",", "100000.", ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Turbulent pressure trans.\>\""}], "}"}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.5039965585179834`*^9, 3.503996561692254*^9}, {
  3.522605551890625*^9, 3.522605566234375*^9}, {3.5719047797252026`*^9, 
  3.571904788274018*^9}, {3.5719050178908215`*^9, 3.5719050340212493`*^9}, {
  3.571905140351036*^9, 3.5719051815819087`*^9}, {3.5719052178831725`*^9, 
  3.5719052874280944`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemEquationsDA", " ", "=", " ", 
   RowBox[{"{", "\n", "   ", 
    RowBox[{"q2", "\[Equal]", 
     RowBox[{"Ks", " ", 
      RowBox[{"signedSquareL", "[", 
       RowBox[{
        RowBox[{"p1", "-", "p2"}], ",", "p0"}], "]"}]}]}], "\n", "   ", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.478679350421875*^9, 3.4786793594375*^9}, {
   3.47867939090625*^9, 3.478679416*^9}, {3.52260570715625*^9, 
   3.5226057146875*^9}, {3.5719047527683554`*^9, 3.5719047653419776`*^9}, 
   3.5719049151646404`*^9, {3.571905042741665*^9, 3.571905042757265*^9}, {
   3.5719050993697643`*^9, 3.5719051159993935`*^9}, {3.5719052107071595`*^9, 
   3.5719052133435645`*^9}, {3.5719053000641165`*^9, 3.5719053021857204`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", " ", "=", " ", 
   RowBox[{"{", "\n", "   ", 
    RowBox[{
     RowBox[{"p1", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{"c1", " ", "-", " ", 
        RowBox[{"Zc1", " ", "q2"}]}], ")"}]}], ",", "\n", "   ", 
     RowBox[{"p2", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{"c2", " ", "+", " ", 
        RowBox[{"Zc2", " ", "q2"}]}], ")"}]}]}], "\n", "   ", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.478679428921875*^9, 3.478679481265625*^9}, {
   3.5158210577049356`*^9, 3.5158210581736856`*^9}, {3.5159004761612453`*^9, 
   3.5159004765987425`*^9}, {3.5719047212095003`*^9, 3.5719047453895426`*^9}, 
   3.5719049206090503`*^9, {3.571905055564887*^9, 3.5719050555804873`*^9}, {
   3.571921124108506*^9, 3.571921128195713*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", " ", "=", " ", 
   RowBox[{"{", 
    RowBox[{"q2", ",", " ", "p1", ",", " ", "p2"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{
  3.50416094853125*^9, 3.5719049276290627`*^9, {3.571905067311708*^9, 
   3.5719050673273077`*^9}, 3.5719053169433465`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"q1", "\[Equal]", 
      RowBox[{"-", "q2"}]}], ","}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.5719048336700974`*^9, 3.5719048645113516`*^9}, {
  3.571905075626522*^9, 3.571905077014925*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input",
 CellChangeTimes->{3.5039025691670113`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(\\(\\({\\(\\(q1 \
\[Equal] \\(\\(-q2\\)\\)\\)\\), Null}\\)\\) \[LeftDoubleBracket] \\(\\(2, \
1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is longer than depth of object. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/partd\\\", \
ButtonNote -> \\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222214922*^9, 3.575649099803213*^9, 3.5756518556505957`*^9, 
   3.5757161654755597`*^9, 3.5757162198575077`*^9, 3.575726610641706*^9, 
   3.5757721864873238`*^9, 3.5757724066399884`*^9, 3.5757725399578223`*^9, 
   3.5757726383720417`*^9, 3.575860264344499*^9, 3.576214802863736*^9, {
   3.576214842275736*^9, 3.576214867550736*^9}, 3.5762154618713336`*^9, {
   3.576215568491995*^9, 3.5762155772528706`*^9}, 3.5762159234724894`*^9, 
   3.5762160037615175`*^9, 3.576216059656106*^9, 3.576216159434739*^9, 
   3.5762168765607977`*^9, 3.576216962118353*^9, 3.57621701769691*^9, 
   3.5762171379849377`*^9, {3.5762171993830767`*^9, 3.5762172275048885`*^9}, 
   3.5762412313373747`*^9, 3.5762413082209177`*^9, {3.5762413795404887`*^9, 
   3.5762414015833273`*^9}, 3.57624147704066*^9, 3.5762415551343975`*^9, 
   3.576921315314641*^9, 3.5776118673275876`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(\\(\\({\\(\\(q1 \
\[Equal] \\(\\(-q2\\)\\)\\)\\), Null}\\)\\) \[LeftDoubleBracket] \\(\\(2, \
1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is longer than depth of object. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/partd\\\", \
ButtonNote -> \\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222214922*^9, 3.575649099803213*^9, 3.5756518556505957`*^9, 
   3.5757161654755597`*^9, 3.5757162198575077`*^9, 3.575726610641706*^9, 
   3.5757721864873238`*^9, 3.5757724066399884`*^9, 3.5757725399578223`*^9, 
   3.5757726383720417`*^9, 3.575860264344499*^9, 3.576214802863736*^9, {
   3.576214842275736*^9, 3.576214867550736*^9}, 3.5762154618713336`*^9, {
   3.576215568491995*^9, 3.5762155772528706`*^9}, 3.5762159234724894`*^9, 
   3.5762160037615175`*^9, 3.576216059656106*^9, 3.576216159434739*^9, 
   3.5762168765607977`*^9, 3.576216962118353*^9, 3.57621701769691*^9, 
   3.5762171379849377`*^9, {3.5762171993830767`*^9, 3.5762172275048885`*^9}, 
   3.5762412313373747`*^9, 3.5762413082209177`*^9, {3.5762413795404887`*^9, 
   3.5762414015833273`*^9}, 3.57624147704066*^9, 3.5762415551343975`*^9, 
   3.576921315314641*^9, 3.577611867329588*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(\\(\\({\\(\\(q1 \
\[Equal] \\(\\(-q2\\)\\)\\)\\), Null}\\)\\) \[LeftDoubleBracket] \\(\\(2, \
1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is longer than depth of object. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/partd\\\", \
ButtonNote -> \\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222214922*^9, 3.575649099803213*^9, 3.5756518556505957`*^9, 
   3.5757161654755597`*^9, 3.5757162198575077`*^9, 3.575726610641706*^9, 
   3.5757721864873238`*^9, 3.5757724066399884`*^9, 3.5757725399578223`*^9, 
   3.5757726383720417`*^9, 3.575860264344499*^9, 3.576214802863736*^9, {
   3.576214842275736*^9, 3.576214867550736*^9}, 3.5762154618713336`*^9, {
   3.576215568491995*^9, 3.5762155772528706`*^9}, 3.5762159234724894`*^9, 
   3.5762160037615175`*^9, 3.576216059656106*^9, 3.576216159434739*^9, 
   3.5762168765607977`*^9, 3.576216962118353*^9, 3.57621701769691*^9, 
   3.5762171379849377`*^9, {3.5762171993830767`*^9, 3.5762172275048885`*^9}, 
   3.5762412313373747`*^9, 3.5762413082209177`*^9, {3.5762413795404887`*^9, 
   3.5762414015833273`*^9}, 3.57624147704066*^9, 3.5762415551343975`*^9, 
   3.576921315314641*^9, 3.577611867331588*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Part :: \
partd\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222214922*^9, 3.575649099803213*^9, 3.5756518556505957`*^9, 
   3.5757161654755597`*^9, 3.5757162198575077`*^9, 3.575726610641706*^9, 
   3.5757721864873238`*^9, 3.5757724066399884`*^9, 3.5757725399578223`*^9, 
   3.5757726383720417`*^9, 3.575860264344499*^9, 3.576214802863736*^9, {
   3.576214842275736*^9, 3.576214867550736*^9}, 3.5762154618713336`*^9, {
   3.576215568491995*^9, 3.5762155772528706`*^9}, 3.5762159234724894`*^9, 
   3.5762160037615175`*^9, 3.576216059656106*^9, 3.576216159434739*^9, 
   3.5762168765607977`*^9, 3.576216962118353*^9, 3.57621701769691*^9, 
   3.5762171379849377`*^9, {3.5762171993830767`*^9, 3.5762172275048885`*^9}, 
   3.5762412313373747`*^9, 3.5762413082209177`*^9, {3.5762413795404887`*^9, 
   3.5762414015833273`*^9}, 3.57624147704066*^9, 3.5762415551343975`*^9, 
   3.576921315314641*^9, 3.5776118673335876`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \
\\\"HydraulicTurbulentOrifice\\\"\\)\\), \\(\\(\\\"displayname\\\" \[Rule] \\\
\"HydraulicTurbulentOrifice\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicTurbulentOrifice.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\
\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicTurbulentOrifice.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\
\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.3333333333333333`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.6666666666666666`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\(\\(\\\"\\\" \[Ellipsis] \\\"\\\"\\)\\) \[Rule] \\(\\(\\\"\\\" \
\[Ellipsis] \\\"\\\"\\)\\)}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\\\"typename\\\" \
\[Rule] \\\"HydraulicTurbulentOrifice\\\"\\)\\), \\(\\(\\\"displayname\\\" \
\[Rule] \\(\\(\\\"Hydrau\\\" \[Ellipsis] \\\"Orifice\\\"\\)\\)\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicTurbulentOrifice.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\
\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicTurbulentOrifice.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\
\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.3333333333333333`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.6666666666666666`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\
\[NoBreak] is not a list of contents. The third item in an XMLElement must be \
a list of contents, even if it is an empty list. \\!\\(\\*ButtonBox[\\\"\
\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222214922*^9, 3.575649099803213*^9, 3.5756518556505957`*^9, 
   3.5757161654755597`*^9, 3.5757162198575077`*^9, 3.575726610641706*^9, 
   3.5757721864873238`*^9, 3.5757724066399884`*^9, 3.5757725399578223`*^9, 
   3.5757726383720417`*^9, 3.575860264344499*^9, 3.576214802863736*^9, {
   3.576214842275736*^9, 3.576214867550736*^9}, 3.5762154618713336`*^9, {
   3.576215568491995*^9, 3.5762155772528706`*^9}, 3.5762159234724894`*^9, 
   3.5762160037615175`*^9, 3.576216059656106*^9, 3.576216159434739*^9, 
   3.5762168765607977`*^9, 3.576216962118353*^9, 3.57621701769691*^9, 
   3.5762171379849377`*^9, {3.5762171993830767`*^9, 3.5762172275048885`*^9}, 
   3.5762412313373747`*^9, 3.5762413082209177`*^9, {3.5762413795404887`*^9, 
   3.5762414015833273`*^9}, 3.57624147704066*^9, 3.5762415551343975`*^9, 
   3.576921315314641*^9, 3.577611867334588*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222214922*^9, 3.575649099803213*^9, 3.5756518556505957`*^9, 
   3.5757161654755597`*^9, 3.5757162198575077`*^9, 3.575726610641706*^9, 
   3.5757721864873238`*^9, 3.5757724066399884`*^9, 3.5757725399578223`*^9, 
   3.5757726383720417`*^9, 3.575860264344499*^9, 3.576214802863736*^9, {
   3.576214842275736*^9, 3.576214867550736*^9}, 3.5762154618713336`*^9, {
   3.576215568491995*^9, 3.5762155772528706`*^9}, 3.5762159234724894`*^9, 
   3.5762160037615175`*^9, 3.576216059656106*^9, 3.576216159434739*^9, 
   3.5762168765607977`*^9, 3.576216962118353*^9, 3.57621701769691*^9, 
   3.5762171379849377`*^9, {3.5762171993830767`*^9, 3.5762172275048885`*^9}, 
   3.5762412313373747`*^9, 3.5762413082209177`*^9, {3.5762413795404887`*^9, 
   3.5762414015833273`*^9}, 3.57624147704066*^9, 3.5762415551343975`*^9, 
   3.576921315314641*^9, 3.5776118673355885`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.3333333333333333`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222214922*^9, 3.575649099803213*^9, 3.5756518556505957`*^9, 
   3.5757161654755597`*^9, 3.5757162198575077`*^9, 3.575726610641706*^9, 
   3.5757721864873238`*^9, 3.5757724066399884`*^9, 3.5757725399578223`*^9, 
   3.5757726383720417`*^9, 3.575860264344499*^9, 3.576214802863736*^9, {
   3.576214842275736*^9, 3.576214867550736*^9}, 3.5762154618713336`*^9, {
   3.576215568491995*^9, 3.5762155772528706`*^9}, 3.5762159234724894`*^9, 
   3.5762160037615175`*^9, 3.576216059656106*^9, 3.576216159434739*^9, 
   3.5762168765607977`*^9, 3.576216962118353*^9, 3.57621701769691*^9, 
   3.5762171379849377`*^9, {3.5762171993830767`*^9, 3.5762172275048885`*^9}, 
   3.5762412313373747`*^9, 3.5762413082209177`*^9, {3.5762413795404887`*^9, 
   3.5762414015833273`*^9}, 3.57624147704066*^9, 3.5762415551343975`*^9, 
   3.576921315314641*^9, 3.5776118673375883`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222214922*^9, 3.575649099803213*^9, 3.5756518556505957`*^9, 
   3.5757161654755597`*^9, 3.5757162198575077`*^9, 3.575726610641706*^9, 
   3.5757721864873238`*^9, 3.5757724066399884`*^9, 3.5757725399578223`*^9, 
   3.5757726383720417`*^9, 3.575860264344499*^9, 3.576214802863736*^9, {
   3.576214842275736*^9, 3.576214867550736*^9}, 3.5762154618713336`*^9, {
   3.576215568491995*^9, 3.5762155772528706`*^9}, 3.5762159234724894`*^9, 
   3.5762160037615175`*^9, 3.576216059656106*^9, 3.576216159434739*^9, 
   3.5762168765607977`*^9, 3.576216962118353*^9, 3.57621701769691*^9, 
   3.5762171379849377`*^9, {3.5762171993830767`*^9, 3.5762172275048885`*^9}, 
   3.5762412313373747`*^9, 3.5762413082209177`*^9, {3.5762413795404887`*^9, 
   3.5762414015833273`*^9}, 3.57624147704066*^9, 3.5762415551343975`*^9, 
   3.576921315314641*^9, 3.5776118673385887`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.6666666666666666`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.6666666666666666`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222214922*^9, 3.575649099803213*^9, 3.5756518556505957`*^9, 
   3.5757161654755597`*^9, 3.5757162198575077`*^9, 3.575726610641706*^9, 
   3.5757721864873238`*^9, 3.5757724066399884`*^9, 3.5757725399578223`*^9, 
   3.5757726383720417`*^9, 3.575860264344499*^9, 3.576214802863736*^9, {
   3.576214842275736*^9, 3.576214867550736*^9}, 3.5762154618713336`*^9, {
   3.576215568491995*^9, 3.5762155772528706`*^9}, 3.5762159234724894`*^9, 
   3.5762160037615175`*^9, 3.576216059656106*^9, 3.576216159434739*^9, 
   3.5762168765607977`*^9, 3.576216962118353*^9, 3.57621701769691*^9, 
   3.5762171379849377`*^9, {3.5762171993830767`*^9, 3.5762172275048885`*^9}, 
   3.5762412313373747`*^9, 3.5762413082209177`*^9, {3.5762413795404887`*^9, 
   3.5762414015833273`*^9}, 3.57624147704066*^9, 3.5762415551343975`*^9, 
   3.576921315314641*^9, 3.577611867339589*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222214922*^9, 3.575649099803213*^9, 3.5756518556505957`*^9, 
   3.5757161654755597`*^9, 3.5757162198575077`*^9, 3.575726610641706*^9, 
   3.5757721864873238`*^9, 3.5757724066399884`*^9, 3.5757725399578223`*^9, 
   3.5757726383720417`*^9, 3.575860264344499*^9, 3.576214802863736*^9, {
   3.576214842275736*^9, 3.576214867550736*^9}, 3.5762154618713336`*^9, {
   3.576215568491995*^9, 3.5762155772528706`*^9}, 3.5762159234724894`*^9, 
   3.5762160037615175`*^9, 3.576216059656106*^9, 3.576216159434739*^9, 
   3.5762168765607977`*^9, 3.576216962118353*^9, 3.57621701769691*^9, 
   3.5762171379849377`*^9, {3.5762171993830767`*^9, 3.5762172275048885`*^9}, 
   3.5762412313373747`*^9, 3.5762413082209177`*^9, {3.5762413795404887`*^9, 
   3.5762414015833273`*^9}, 3.57624147704066*^9, 3.5762415551343975`*^9, 
   3.576921315314641*^9, 3.5776118673405886`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222214922*^9, 3.575649099803213*^9, 3.5756518556505957`*^9, 
   3.5757161654755597`*^9, 3.5757162198575077`*^9, 3.575726610641706*^9, 
   3.5757721864873238`*^9, 3.5757724066399884`*^9, 3.5757725399578223`*^9, 
   3.5757726383720417`*^9, 3.575860264344499*^9, 3.576214802863736*^9, {
   3.576214842275736*^9, 3.576214867550736*^9}, 3.5762154618713336`*^9, {
   3.576215568491995*^9, 3.5762155772528706`*^9}, 3.5762159234724894`*^9, 
   3.5762160037615175`*^9, 3.576216059656106*^9, 3.576216159434739*^9, 
   3.5762168765607977`*^9, 3.576216962118353*^9, 3.57621701769691*^9, 
   3.5762171379849377`*^9, {3.5762171993830767`*^9, 3.5762172275048885`*^9}, 
   3.5762412313373747`*^9, 3.5762413082209177`*^9, {3.5762413795404887`*^9, 
   3.5762414015833273`*^9}, 3.57624147704066*^9, 3.5762415551343975`*^9, 
   3.576921315314641*^9, 3.577611867341589*^9}],

Cell[BoxData["\<\"HydraulicTurbulentOrifice.xml\"\>"], "Output",
 CellChangeTimes->{
  3.53315391021875*^9, 3.533154006015625*^9, 3.533273390986384*^9, 
   3.538722952057*^9, 3.538977591052286*^9, 3.554715620764737*^9, 
   3.5719772223085237`*^9, 3.575649099828214*^9, 3.5756518557125993`*^9, 
   3.5757161654911594`*^9, 3.575716219888708*^9, 3.5757266106573057`*^9, 
   3.5757721865185237`*^9, 3.5757724066711884`*^9, 3.575772539973422*^9, 
   3.5757726384032416`*^9, 3.5758602643600917`*^9, 3.5762148028947363`*^9, {
   3.576214842308736*^9, 3.576214867573736*^9}, 3.5762154618963366`*^9, {
   3.5762155685219975`*^9, 3.576215577276873*^9}, 3.5762159235044923`*^9, 
   3.5762160038135223`*^9, 3.5762160596951103`*^9, 3.5762161594757385`*^9, 
   3.5762168765978017`*^9, 3.5762169621673574`*^9, 3.5762170177329135`*^9, 
   3.5762171380229416`*^9, {3.5762171994210806`*^9, 3.576217227567895*^9}, 
   3.5762412313373747`*^9, 3.576241308252118*^9, {3.5762413795716887`*^9, 
   3.5762414016145277`*^9}, 3.5762414770718603`*^9, 3.576241555165597*^9, 
   3.576921315357641*^9, 3.577611867342589*^9}]
}, Open  ]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell["SharpEdgedOrifice", "Section",
 CellChangeTimes->{{3.4785828348125*^9, 3.47858284740625*^9}, 
   3.47867904165625*^9, 3.5719048133276615`*^9, {3.5719049896391716`*^9, 
   3.571904993773179*^9}}],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<SharpEdgedOrifice\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"brief", "=", "\"\<hydraulic sharp edged orifice component\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.507887022343302*^9, 
   3.507887057967846*^9}, {3.5078871702320337`*^9, 3.507887175028847*^9}, {
   3.5158208831437864`*^9, 3.51582092036206*^9}, {3.5158209798300486`*^9, 
   3.51582099300181*^9}, {3.522605661421875*^9, 3.522605661625*^9}, {
   3.5719048175552692`*^9, 3.571904823015279*^9}, {3.5719050007775908`*^9, 
   3.571905012306011*^9}, 3.575772111451592*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", "\t", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Upstream port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", "\t", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Downstream port\>\""}], "]"}]}],
     "}"}]}], ";"}]], "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.},
 CellChangeTimes->{{3.4779981058619356`*^9, 3.4779981542683554`*^9}, 
   3.4780017782035847`*^9, {3.478002203430644*^9, 3.478002217153696*^9}, {
   3.478002277203772*^9, 3.4780023021490927`*^9}, {3.4780026209521627`*^9, 
   3.478002664340765*^9}, {3.478021796078125*^9, 3.478021842203125*^9}, {
   3.478021885296875*^9, 3.47802199571875*^9}, {3.47802539628125*^9, 
   3.478025479125*^9}, {3.478026054375*^9, 3.47802606034375*^9}, {
   3.47818056640625*^9, 3.47818064359375*^9}, {3.478184752578125*^9, 
   3.478184788859375*^9}, {3.4781848254375*^9, 3.47818487890625*^9}, {
   3.47818496809375*^9, 3.478184980140625*^9}, {3.478189354859375*^9, 
   3.478189379078125*^9}, {3.478679541453125*^9, 3.478679542*^9}, 
   3.47868324640625*^9, 3.478683514703125*^9, {3.4807602098503075`*^9, 
   3.480760210147073*^9}, {3.480760285603793*^9, 3.4807602892909627`*^9}, 
   3.480760331584048*^9, {3.498888542331812*^9, 3.498888576862841*^9}, {
   3.499083790077364*^9, 3.4990838046238666`*^9}, {3.503902471203904*^9, 
   3.503902488249798*^9}, {3.5039965507621307`*^9, 3.503996553952038*^9}, {
   3.522605447421875*^9, 3.522605449140625*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{"Av", ",", 
       RowBox[{"1.0", "*", 
        RowBox[{"10", "^", 
         RowBox[{"-", "11"}]}]}], ",", "double", ",", "\"\<m2\>\"", ",", 
       "\"\<Orifice area\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Cq", ",", "0.67", ",", "double", ",", "\"\< \>\"", ",", 
       "\"\<Flow coefficient\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "rho", ",", "860.", ",", "double", ",", "\"\<kg/m3\>\"", ",", 
       "\"\<oil density\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "p0", ",", "100000.", ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Turbulent pressure trans.\>\""}], "}"}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.5039965585179834`*^9, 3.503996561692254*^9}, {
  3.522605551890625*^9, 3.522605566234375*^9}, {3.5719047797252026`*^9, 
  3.571904788274018*^9}, {3.5719050178908215`*^9, 3.5719050340212493`*^9}, {
  3.571905140351036*^9, 3.5719051815819087`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemEquationsDA", " ", "=", " ", 
   RowBox[{"{", "\n", "   ", 
    RowBox[{"q2", "==", 
     RowBox[{"Cq", " ", "Av", " ", 
      SqrtBox[
       FractionBox["2.", "rho"]], 
      RowBox[{"signedSquareL", "[", 
       RowBox[{
        RowBox[{"p1", "-", "p2"}], ",", "p0"}], "]"}]}]}], "\n", "   ", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.478679350421875*^9, 3.4786793594375*^9}, {
   3.47867939090625*^9, 3.478679416*^9}, {3.52260570715625*^9, 
   3.5226057146875*^9}, {3.5719047527683554`*^9, 3.5719047653419776`*^9}, 
   3.5719049151646404`*^9, {3.571905042741665*^9, 3.571905042757265*^9}, {
   3.5719050993697643`*^9, 3.5719051159993935`*^9}, {3.5719053063509274`*^9, 
   3.57190530758333*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", " ", "=", " ", 
   RowBox[{"{", "\n", "   ", 
    RowBox[{
     RowBox[{"p1", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{"c1", " ", "-", " ", 
        RowBox[{"Zc1", " ", "q2"}]}], ")"}]}], ",", "\n", "   ", 
     RowBox[{"p2", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{"c2", " ", "+", " ", 
        RowBox[{"Zc2", " ", "q2"}]}], ")"}]}]}], "\n", "   ", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.478679428921875*^9, 3.478679481265625*^9}, {
   3.5158210577049356`*^9, 3.5158210581736856`*^9}, {3.5159004761612453`*^9, 
   3.5159004765987425`*^9}, {3.5719047212095003`*^9, 3.5719047453895426`*^9}, 
   3.5719049206090503`*^9, {3.571905055564887*^9, 3.5719050555804873`*^9}, {
   3.5719211356837263`*^9, 3.5719211377585297`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", " ", "=", " ", 
   RowBox[{"{", 
    RowBox[{"q2", ",", "  ", "p1", ",", " ", "p2"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{
  3.50416094853125*^9, 3.5719049276290627`*^9, {3.571905067311708*^9, 
   3.5719050673273077`*^9}, 3.57190531319934*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"q1", "\[Equal]", 
      RowBox[{"-", "q2"}]}], ","}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.5719048336700974`*^9, 3.5719048645113516`*^9}, {
  3.571905075626522*^9, 3.571905077014925*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input",
 CellChangeTimes->{3.5039025691670113`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(\\(\\({\\(\\(q1 \
\[Equal] \\(\\(-q2\\)\\)\\)\\), Null}\\)\\) \[LeftDoubleBracket] \\(\\(2, \
1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is longer than depth of object. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/partd\\\", \
ButtonNote -> \\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222386525*^9, 3.5756491000672283`*^9, 3.5756518558056045`*^9, 
   3.5757161656003604`*^9, 3.575716219966709*^9, 3.575726610750906*^9, 
   3.575772186658924*^9, 3.5757724067959886`*^9, 3.5757725400514226`*^9, 
   3.575772638528042*^9, 3.5758602644692383`*^9, 3.5762148030017357`*^9, {
   3.5762148424167356`*^9, 3.5762148676707363`*^9}, 3.5762154619983463`*^9, {
   3.576215568618007*^9, 3.5762155773838835`*^9}, 3.5762159236655083`*^9, 
   3.5762160039755387`*^9, 3.576216059842125*^9, 3.576216159623739*^9, 
   3.5762168767438164`*^9, 3.5762169623363743`*^9, 3.576217017874928*^9, 
   3.576217138269966*^9, {3.5762171995850973`*^9, 3.576217227708909*^9}, 
   3.576241231462175*^9, 3.576241308330118*^9, {3.576241379665289*^9, 
   3.576241401708128*^9}, 3.5762414771654606`*^9, 3.5762415552903976`*^9, 
   3.576921315472641*^9, 3.577611867465601*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(\\(\\({\\(\\(q1 \
\[Equal] \\(\\(-q2\\)\\)\\)\\), Null}\\)\\) \[LeftDoubleBracket] \\(\\(2, \
1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is longer than depth of object. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/partd\\\", \
ButtonNote -> \\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222386525*^9, 3.5756491000672283`*^9, 3.5756518558056045`*^9, 
   3.5757161656003604`*^9, 3.575716219966709*^9, 3.575726610750906*^9, 
   3.575772186658924*^9, 3.5757724067959886`*^9, 3.5757725400514226`*^9, 
   3.575772638528042*^9, 3.5758602644692383`*^9, 3.5762148030017357`*^9, {
   3.5762148424167356`*^9, 3.5762148676707363`*^9}, 3.5762154619983463`*^9, {
   3.576215568618007*^9, 3.5762155773838835`*^9}, 3.5762159236655083`*^9, 
   3.5762160039755387`*^9, 3.576216059842125*^9, 3.576216159623739*^9, 
   3.5762168767438164`*^9, 3.5762169623363743`*^9, 3.576217017874928*^9, 
   3.576217138269966*^9, {3.5762171995850973`*^9, 3.576217227708909*^9}, 
   3.576241231462175*^9, 3.576241308330118*^9, {3.576241379665289*^9, 
   3.576241401708128*^9}, 3.5762414771654606`*^9, 3.5762415552903976`*^9, 
   3.576921315472641*^9, 3.577611867467602*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(\\(\\({\\(\\(q1 \
\[Equal] \\(\\(-q2\\)\\)\\)\\), Null}\\)\\) \[LeftDoubleBracket] \\(\\(2, \
1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is longer than depth of object. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/partd\\\", \
ButtonNote -> \\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222386525*^9, 3.5756491000672283`*^9, 3.5756518558056045`*^9, 
   3.5757161656003604`*^9, 3.575716219966709*^9, 3.575726610750906*^9, 
   3.575772186658924*^9, 3.5757724067959886`*^9, 3.5757725400514226`*^9, 
   3.575772638528042*^9, 3.5758602644692383`*^9, 3.5762148030017357`*^9, {
   3.5762148424167356`*^9, 3.5762148676707363`*^9}, 3.5762154619983463`*^9, {
   3.576215568618007*^9, 3.5762155773838835`*^9}, 3.5762159236655083`*^9, 
   3.5762160039755387`*^9, 3.576216059842125*^9, 3.576216159623739*^9, 
   3.5762168767438164`*^9, 3.5762169623363743`*^9, 3.576217017874928*^9, 
   3.576217138269966*^9, {3.5762171995850973`*^9, 3.576217227708909*^9}, 
   3.576241231462175*^9, 3.576241308330118*^9, {3.576241379665289*^9, 
   3.576241401708128*^9}, 3.5762414771654606`*^9, 3.5762415552903976`*^9, 
   3.576921315472641*^9, 3.5776118674696016`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Part :: \
partd\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222386525*^9, 3.5756491000672283`*^9, 3.5756518558056045`*^9, 
   3.5757161656003604`*^9, 3.575716219966709*^9, 3.575726610750906*^9, 
   3.575772186658924*^9, 3.5757724067959886`*^9, 3.5757725400514226`*^9, 
   3.575772638528042*^9, 3.5758602644692383`*^9, 3.5762148030017357`*^9, {
   3.5762148424167356`*^9, 3.5762148676707363`*^9}, 3.5762154619983463`*^9, {
   3.576215568618007*^9, 3.5762155773838835`*^9}, 3.5762159236655083`*^9, 
   3.5762160039755387`*^9, 3.576216059842125*^9, 3.576216159623739*^9, 
   3.5762168767438164`*^9, 3.5762169623363743`*^9, 3.576217017874928*^9, 
   3.576217138269966*^9, {3.5762171995850973`*^9, 3.576217227708909*^9}, 
   3.576241231462175*^9, 3.576241308330118*^9, {3.576241379665289*^9, 
   3.576241401708128*^9}, 3.5762414771654606`*^9, 3.5762415552903976`*^9, 
   3.576921315472641*^9, 3.577611867470602*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \
\\\"HydraulicSharpEdgedOrifice\\\"\\)\\), \\(\\(\\\"displayname\\\" \[Rule] \
\\\"HydraulicSharpEdgedOrifice\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicSharpEdgedOrifice.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicSharpEdgedOrifice.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\
\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.3333333333333333`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.6666666666666666`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\(\\(\\\"\\\" \[Ellipsis] \\\"\\\"\\)\\) \[Rule] \\(\\(\\\"\\\" \
\[Ellipsis] \\\"\\\"\\)\\)}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\\\"typename\\\" \
\[Rule] \\\"HydraulicSharpEdgedOrifice\\\"\\)\\), \\(\\(\\\"displayname\\\" \
\[Rule] \\(\\(\\\"Hydra\\\" \[Ellipsis] \\\"ifice\\\"\\)\\)\\)\\)}\\)\\), \\(\
\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \[Rule] \
\\\"HydraulicSharpEdgedOrifice.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicSharpEdgedOrifice.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\
\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \\(\\({\\(\
\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P1\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.6666666666666666`\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \\(\\({}\
\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\
\[NoBreak] is not a list of contents. The third item in an XMLElement must be \
a list of contents, even if it is an empty list. \\!\\(\\*ButtonBox[\\\"\
\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222386525*^9, 3.5756491000672283`*^9, 3.5756518558056045`*^9, 
   3.5757161656003604`*^9, 3.575716219966709*^9, 3.575726610750906*^9, 
   3.575772186658924*^9, 3.5757724067959886`*^9, 3.5757725400514226`*^9, 
   3.575772638528042*^9, 3.5758602644692383`*^9, 3.5762148030017357`*^9, {
   3.5762148424167356`*^9, 3.5762148676707363`*^9}, 3.5762154619983463`*^9, {
   3.576215568618007*^9, 3.5762155773838835`*^9}, 3.5762159236655083`*^9, 
   3.5762160039755387`*^9, 3.576216059842125*^9, 3.576216159623739*^9, 
   3.5762168767438164`*^9, 3.5762169623363743`*^9, 3.576217017874928*^9, 
   3.576217138269966*^9, {3.5762171995850973`*^9, 3.576217227708909*^9}, 
   3.576241231462175*^9, 3.576241308330118*^9, {3.576241379665289*^9, 
   3.576241401708128*^9}, 3.5762414771654606`*^9, 3.5762415552903976`*^9, 
   3.576921315472641*^9, 3.577611867471602*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222386525*^9, 3.5756491000672283`*^9, 3.5756518558056045`*^9, 
   3.5757161656003604`*^9, 3.575716219966709*^9, 3.575726610750906*^9, 
   3.575772186658924*^9, 3.5757724067959886`*^9, 3.5757725400514226`*^9, 
   3.575772638528042*^9, 3.5758602644692383`*^9, 3.5762148030017357`*^9, {
   3.5762148424167356`*^9, 3.5762148676707363`*^9}, 3.5762154619983463`*^9, {
   3.576215568618007*^9, 3.5762155773838835`*^9}, 3.5762159236655083`*^9, 
   3.5762160039755387`*^9, 3.576216059842125*^9, 3.576216159623739*^9, 
   3.5762168767438164`*^9, 3.5762169623363743`*^9, 3.576217017874928*^9, 
   3.576217138269966*^9, {3.5762171995850973`*^9, 3.576217227708909*^9}, 
   3.576241231462175*^9, 3.576241308330118*^9, {3.576241379665289*^9, 
   3.576241401708128*^9}, 3.5762414771654606`*^9, 3.5762415552903976`*^9, 
   3.576921315472641*^9, 3.5776118674736023`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.3333333333333333`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222386525*^9, 3.5756491000672283`*^9, 3.5756518558056045`*^9, 
   3.5757161656003604`*^9, 3.575716219966709*^9, 3.575726610750906*^9, 
   3.575772186658924*^9, 3.5757724067959886`*^9, 3.5757725400514226`*^9, 
   3.575772638528042*^9, 3.5758602644692383`*^9, 3.5762148030017357`*^9, {
   3.5762148424167356`*^9, 3.5762148676707363`*^9}, 3.5762154619983463`*^9, {
   3.576215568618007*^9, 3.5762155773838835`*^9}, 3.5762159236655083`*^9, 
   3.5762160039755387`*^9, 3.576216059842125*^9, 3.576216159623739*^9, 
   3.5762168767438164`*^9, 3.5762169623363743`*^9, 3.576217017874928*^9, 
   3.576217138269966*^9, {3.5762171995850973`*^9, 3.576217227708909*^9}, 
   3.576241231462175*^9, 3.576241308330118*^9, {3.576241379665289*^9, 
   3.576241401708128*^9}, 3.5762414771654606`*^9, 3.5762415552903976`*^9, 
   3.576921315472641*^9, 3.577611867474602*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222386525*^9, 3.5756491000672283`*^9, 3.5756518558056045`*^9, 
   3.5757161656003604`*^9, 3.575716219966709*^9, 3.575726610750906*^9, 
   3.575772186658924*^9, 3.5757724067959886`*^9, 3.5757725400514226`*^9, 
   3.575772638528042*^9, 3.5758602644692383`*^9, 3.5762148030017357`*^9, {
   3.5762148424167356`*^9, 3.5762148676707363`*^9}, 3.5762154619983463`*^9, {
   3.576215568618007*^9, 3.5762155773838835`*^9}, 3.5762159236655083`*^9, 
   3.5762160039755387`*^9, 3.576216059842125*^9, 3.576216159623739*^9, 
   3.5762168767438164`*^9, 3.5762169623363743`*^9, 3.576217017874928*^9, 
   3.576217138269966*^9, {3.5762171995850973`*^9, 3.576217227708909*^9}, 
   3.576241231462175*^9, 3.576241308330118*^9, {3.576241379665289*^9, 
   3.576241401708128*^9}, 3.5762414771654606`*^9, 3.5762415552903976`*^9, 
   3.576921315472641*^9, 3.577611867475602*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.6666666666666666`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.6666666666666666`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222386525*^9, 3.5756491000672283`*^9, 3.5756518558056045`*^9, 
   3.5757161656003604`*^9, 3.575716219966709*^9, 3.575726610750906*^9, 
   3.575772186658924*^9, 3.5757724067959886`*^9, 3.5757725400514226`*^9, 
   3.575772638528042*^9, 3.5758602644692383`*^9, 3.5762148030017357`*^9, {
   3.5762148424167356`*^9, 3.5762148676707363`*^9}, 3.5762154619983463`*^9, {
   3.576215568618007*^9, 3.5762155773838835`*^9}, 3.5762159236655083`*^9, 
   3.5762160039755387`*^9, 3.576216059842125*^9, 3.576216159623739*^9, 
   3.5762168767438164`*^9, 3.5762169623363743`*^9, 3.576217017874928*^9, 
   3.576217138269966*^9, {3.5762171995850973`*^9, 3.576217227708909*^9}, 
   3.576241231462175*^9, 3.576241308330118*^9, {3.576241379665289*^9, 
   3.576241401708128*^9}, 3.5762414771654606`*^9, 3.5762415552903976`*^9, 
   3.576921315472641*^9, 3.5776118674766026`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222386525*^9, 3.5756491000672283`*^9, 3.5756518558056045`*^9, 
   3.5757161656003604`*^9, 3.575716219966709*^9, 3.575726610750906*^9, 
   3.575772186658924*^9, 3.5757724067959886`*^9, 3.5757725400514226`*^9, 
   3.575772638528042*^9, 3.5758602644692383`*^9, 3.5762148030017357`*^9, {
   3.5762148424167356`*^9, 3.5762148676707363`*^9}, 3.5762154619983463`*^9, {
   3.576215568618007*^9, 3.5762155773838835`*^9}, 3.5762159236655083`*^9, 
   3.5762160039755387`*^9, 3.576216059842125*^9, 3.576216159623739*^9, 
   3.5762168767438164`*^9, 3.5762169623363743`*^9, 3.576217017874928*^9, 
   3.576217138269966*^9, {3.5762171995850973`*^9, 3.576217227708909*^9}, 
   3.576241231462175*^9, 3.576241308330118*^9, {3.576241379665289*^9, 
   3.576241401708128*^9}, 3.5762414771654606`*^9, 3.5762415552903976`*^9, 
   3.576921315472641*^9, 3.5776118674776025`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.571977222386525*^9, 3.5756491000672283`*^9, 3.5756518558056045`*^9, 
   3.5757161656003604`*^9, 3.575716219966709*^9, 3.575726610750906*^9, 
   3.575772186658924*^9, 3.5757724067959886`*^9, 3.5757725400514226`*^9, 
   3.575772638528042*^9, 3.5758602644692383`*^9, 3.5762148030017357`*^9, {
   3.5762148424167356`*^9, 3.5762148676707363`*^9}, 3.5762154619983463`*^9, {
   3.576215568618007*^9, 3.5762155773838835`*^9}, 3.5762159236655083`*^9, 
   3.5762160039755387`*^9, 3.576216059842125*^9, 3.576216159623739*^9, 
   3.5762168767438164`*^9, 3.5762169623363743`*^9, 3.576217017874928*^9, 
   3.576217138269966*^9, {3.5762171995850973`*^9, 3.576217227708909*^9}, 
   3.576241231462175*^9, 3.576241308330118*^9, {3.576241379665289*^9, 
   3.576241401708128*^9}, 3.5762414771654606`*^9, 3.5762415552903976`*^9, 
   3.576921315472641*^9, 3.5776118674786024`*^9}],

Cell[BoxData["\<\"HydraulicSharpEdgedOrifice.xml\"\>"], "Output",
 CellChangeTimes->{
  3.53315391021875*^9, 3.533154006015625*^9, 3.533273390986384*^9, 
   3.538722952057*^9, 3.538977591052286*^9, 3.554715620764737*^9, 
   3.5719772224177256`*^9, 3.5756491000822287`*^9, 3.575651855835606*^9, 
   3.5757161656003604`*^9, 3.575716219997909*^9, 3.575726610766506*^9, 
   3.575772186690124*^9, 3.5757724068427887`*^9, 3.5757725400826225`*^9, 
   3.5757726385592422`*^9, 3.575860264484831*^9, 3.576214803033736*^9, {
   3.576214842450736*^9, 3.576214867694736*^9}, 3.576215462023349*^9, {
   3.57621556864501*^9, 3.5762155774148865`*^9}, 3.576215923730515*^9, 
   3.5762160040235434`*^9, 3.576216059880129*^9, 3.576216159674739*^9, 
   3.5762168767788196`*^9, 3.5762169623823795`*^9, 3.576217017916932*^9, 
   3.5762171383069696`*^9, {3.576217199634102*^9, 3.5762172277599144`*^9}, 
   3.576241231477775*^9, 3.576241308361318*^9, {3.5762413796964893`*^9, 
   3.576241401739328*^9}, 3.5762414771966605`*^9, 3.5762415553215976`*^9, 
   3.576921315510641*^9, 3.5776118674786024`*^9}]
}, Open  ]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell["LaminarOrifice", "Section",
 CellChangeTimes->{{3.4785828348125*^9, 3.47858284740625*^9}, 
   3.47867904165625*^9, 3.5719048133276615`*^9}],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<LaminarOrifice\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"brief", "=", "\"\<Two hydraulic laminar orifice component\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.507887022343302*^9, 
   3.507887057967846*^9}, {3.5078871702320337`*^9, 3.507887175028847*^9}, {
   3.5158208831437864`*^9, 3.51582092036206*^9}, {3.5158209798300486`*^9, 
   3.51582099300181*^9}, {3.522605661421875*^9, 3.522605661625*^9}, {
   3.5719048175552692`*^9, 3.571904823015279*^9}, 3.575772112231593*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", "\t", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Upstream port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", "\t", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Downstream port\>\""}], "]"}]}],
     "}"}]}], ";"}]], "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.},
 CellChangeTimes->{{3.4779981058619356`*^9, 3.4779981542683554`*^9}, 
   3.4780017782035847`*^9, {3.478002203430644*^9, 3.478002217153696*^9}, {
   3.478002277203772*^9, 3.4780023021490927`*^9}, {3.4780026209521627`*^9, 
   3.478002664340765*^9}, {3.478021796078125*^9, 3.478021842203125*^9}, {
   3.478021885296875*^9, 3.47802199571875*^9}, {3.47802539628125*^9, 
   3.478025479125*^9}, {3.478026054375*^9, 3.47802606034375*^9}, {
   3.47818056640625*^9, 3.47818064359375*^9}, {3.478184752578125*^9, 
   3.478184788859375*^9}, {3.4781848254375*^9, 3.47818487890625*^9}, {
   3.47818496809375*^9, 3.478184980140625*^9}, {3.478189354859375*^9, 
   3.478189379078125*^9}, {3.478679541453125*^9, 3.478679542*^9}, 
   3.47868324640625*^9, 3.478683514703125*^9, {3.4807602098503075`*^9, 
   3.480760210147073*^9}, {3.480760285603793*^9, 3.4807602892909627`*^9}, 
   3.480760331584048*^9, {3.498888542331812*^9, 3.498888576862841*^9}, {
   3.499083790077364*^9, 3.4990838046238666`*^9}, {3.503902471203904*^9, 
   3.503902488249798*^9}, {3.5039965507621307`*^9, 3.503996553952038*^9}, {
   3.522605447421875*^9, 3.522605449140625*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{"{", 
     RowBox[{"Kcv", ",", 
      RowBox[{"1.0", "*", 
       RowBox[{"10", "^", 
        RowBox[{"-", "11"}]}]}], ",", "double", ",", "\"\<m5/(N s)\>\"", ",", 
      "\"\<Pressure-flow koeff.\>\""}], "}"}], "\[IndentingNewLine]", "}"}]}],
   ";"}]], "Input",
 CellChangeTimes->{{3.5039965585179834`*^9, 3.503996561692254*^9}, {
  3.522605551890625*^9, 3.522605566234375*^9}, {3.5719047797252026`*^9, 
  3.571904788274018*^9}}],

Cell["\<\
systemEquationsDA = {
   q2 == Kcv (p1 - p2),
   q1 == -q2
   };\
\>", "Text",
 CellChangeTimes->{{3.478679350421875*^9, 3.4786793594375*^9}, {
   3.47867939090625*^9, 3.478679416*^9}, {3.52260570715625*^9, 
   3.5226057146875*^9}, {3.5719047527683554`*^9, 3.5719047653419776`*^9}, 
   3.5719049151646404`*^9}],

Cell["\<\
systemBoundaryEquations = {
   p1 == (c1 + Zc1 q1),
   p2 == (c2 + Zc2 q2)
   };\
\>", "Text",
 CellChangeTimes->{{3.478679428921875*^9, 3.478679481265625*^9}, {
   3.5158210577049356`*^9, 3.5158210581736856`*^9}, {3.5159004761612453`*^9, 
   3.5159004765987425`*^9}, {3.5719047212095003`*^9, 3.5719047453895426`*^9}, 
   3.5719049206090503`*^9}],

Cell["systemVariables = {q2, q1, p1, p2};", "Text",
 CellChangeTimes->{3.50416094853125*^9, 3.5719049276290627`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"q2", "==", 
      RowBox[{"Kcv", " ", 
       RowBox[{"(", 
        RowBox[{"c1", "-", "c2"}], ")"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"q1", "\[Equal]", 
      RowBox[{"-", "q2"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"p1", "==", 
      RowBox[{"(", 
       RowBox[{"c1", "+", 
        RowBox[{"Zc1", " ", "q1"}]}], ")"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"p2", "==", 
      RowBox[{"(", 
       RowBox[{"c2", "+", 
        RowBox[{"Zc2", " ", "q2"}]}], ")"}]}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.5719048336700974`*^9, 3.5719048645113516`*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input",
 CellChangeTimes->{3.5039025691670113`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Unset", "::", "write"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Tag \[NoBreak]\\!\\(PreDecrement\\)\[NoBreak] in \
\[NoBreak]\\!\\(--\\(\\(--\\(\\(--\\(\\(--\\(\\(--\\(\\((\\(-10000000000\\))\\\
)\\)\\)\\)\\)\\)\\)\\)\\)\\)\\)\[NoBreak] is Protected. \\!\\(\\*ButtonBox[\\\
\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/write\\\", ButtonNote -> \
\\\"Unset::write\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.5719772224957275`*^9, 3.5756491001792345`*^9, 3.575651855997616*^9, 
   3.575716165678361*^9, 3.5757162200603094`*^9, 3.575726610828906*^9, 
   3.575772186799324*^9, 3.575772406936389*^9, 3.575772540254223*^9, 
   3.5757726386528425`*^9, 3.5758602645783854`*^9, 3.5762148031047363`*^9, {
   3.5762148425267363`*^9, 3.576214867765736*^9}, 3.5762154621113577`*^9, {
   3.576215568717017*^9, 3.5762155774908943`*^9}, 3.5762159238235245`*^9, 
   3.576216004208562*^9, 3.5762160599961405`*^9, 3.576216159779739*^9, 
   3.576216876962838*^9, 3.576216962555396*^9, 3.5762170180789485`*^9, 
   3.5762171384239817`*^9, {3.576217199820121*^9, 3.5762172279409323`*^9}, 
   3.576241231555775*^9, 3.5762413084393187`*^9, {3.576241379821289*^9, 
   3.576241401864128*^9}, 3.576241477337061*^9, 3.5762415553995976`*^9, 
   3.5769213156036415`*^9, 3.577611867580613*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Symbol", "::", "symname"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"The string \\\"\[NoBreak]\\!\\(\\\"     \
3\\\\n-----------\\\\n10000000000\\\"\\)\[NoBreak]\\\" cannot be used for a \
symbol name. A symbol name must start with a letter followed by letters and \
numbers. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\
\", ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/Symbol/symname\\\", \
ButtonNote -> \\\"Symbol::symname\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.5719772224957275`*^9, 3.5756491001792345`*^9, 3.575651855997616*^9, 
   3.575716165678361*^9, 3.5757162200603094`*^9, 3.575726610828906*^9, 
   3.575772186799324*^9, 3.575772406936389*^9, 3.575772540254223*^9, 
   3.5757726386528425`*^9, 3.5758602645783854`*^9, 3.5762148031047363`*^9, {
   3.5762148425267363`*^9, 3.576214867765736*^9}, 3.5762154621113577`*^9, {
   3.576215568717017*^9, 3.5762155774908943`*^9}, 3.5762159238235245`*^9, 
   3.576216004208562*^9, 3.5762160599961405`*^9, 3.576216159779739*^9, 
   3.576216876962838*^9, 3.576216962555396*^9, 3.5762170180789485`*^9, 
   3.5762171384239817`*^9, {3.576217199820121*^9, 3.5762172279409323`*^9}, 
   3.576241231555775*^9, 3.5762413084393187`*^9, {3.576241379821289*^9, 
   3.576241401864128*^9}, 3.576241477337061*^9, 3.5762415553995976`*^9, 
   3.5769213156036415`*^9, 3.577611867582613*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \\\"HydraulicLaminarOrifice\\\"\\)\\), \
\\(\\(\\\"displayname\\\" \[Rule] \
\\\"HydraulicLaminarOrifice\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicLaminarOrifice.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicLaminarOrifice.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\
\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.3333333333333333`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.6666666666666666`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\\"version\\\" \[Rule] \\\"0.1\\\"}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\\\"typename\\\" \
\[Rule] \\\"HydraulicLaminarOrifice\\\"\\)\\), \\(\\(\\\"displayname\\\" \
\[Rule] \\\"HydraulicLaminarOrifice\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicLaminarOrifice.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicLaminarOrifice.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\
\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.3333333333333333`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.6666666666666666`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\
\[NoBreak] is not a list of contents. The third item in an XMLElement must be \
a list of contents, even if it is an empty list. \\!\\(\\*ButtonBox[\\\"\
\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.5719772224957275`*^9, 3.5756491001792345`*^9, 3.575651855997616*^9, 
   3.575716165678361*^9, 3.5757162200603094`*^9, 3.575726610828906*^9, 
   3.575772186799324*^9, 3.575772406936389*^9, 3.575772540254223*^9, 
   3.5757726386528425`*^9, 3.5758602645783854`*^9, 3.5762148031047363`*^9, {
   3.5762148425267363`*^9, 3.576214867765736*^9}, 3.5762154621113577`*^9, {
   3.576215568717017*^9, 3.5762155774908943`*^9}, 3.5762159238235245`*^9, 
   3.576216004208562*^9, 3.5762160599961405`*^9, 3.576216159779739*^9, 
   3.576216876962838*^9, 3.576216962555396*^9, 3.5762170180789485`*^9, 
   3.5762171384239817`*^9, {3.576217199820121*^9, 3.5762172279409323`*^9}, 
   3.576241231555775*^9, 3.5762413084393187`*^9, {3.576241379821289*^9, 
   3.576241401864128*^9}, 3.576241477337061*^9, 3.5762415553995976`*^9, 
   3.5769213156036415`*^9, 3.577611867605615*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.5719772224957275`*^9, 3.5756491001792345`*^9, 3.575651855997616*^9, 
   3.575716165678361*^9, 3.5757162200603094`*^9, 3.575726610828906*^9, 
   3.575772186799324*^9, 3.575772406936389*^9, 3.575772540254223*^9, 
   3.5757726386528425`*^9, 3.5758602645783854`*^9, 3.5762148031047363`*^9, {
   3.5762148425267363`*^9, 3.576214867765736*^9}, 3.5762154621113577`*^9, {
   3.576215568717017*^9, 3.5762155774908943`*^9}, 3.5762159238235245`*^9, 
   3.576216004208562*^9, 3.5762160599961405`*^9, 3.576216159779739*^9, 
   3.576216876962838*^9, 3.576216962555396*^9, 3.5762170180789485`*^9, 
   3.5762171384239817`*^9, {3.576217199820121*^9, 3.5762172279409323`*^9}, 
   3.576241231555775*^9, 3.5762413084393187`*^9, {3.576241379821289*^9, 
   3.576241401864128*^9}, 3.576241477337061*^9, 3.5762415553995976`*^9, 
   3.5769213156036415`*^9, 3.577611867606615*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.3333333333333333`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.5719772224957275`*^9, 3.5756491001792345`*^9, 3.575651855997616*^9, 
   3.575716165678361*^9, 3.5757162200603094`*^9, 3.575726610828906*^9, 
   3.575772186799324*^9, 3.575772406936389*^9, 3.575772540254223*^9, 
   3.5757726386528425`*^9, 3.5758602645783854`*^9, 3.5762148031047363`*^9, {
   3.5762148425267363`*^9, 3.576214867765736*^9}, 3.5762154621113577`*^9, {
   3.576215568717017*^9, 3.5762155774908943`*^9}, 3.5762159238235245`*^9, 
   3.576216004208562*^9, 3.5762160599961405`*^9, 3.576216159779739*^9, 
   3.576216876962838*^9, 3.576216962555396*^9, 3.5762170180789485`*^9, 
   3.5762171384239817`*^9, {3.576217199820121*^9, 3.5762172279409323`*^9}, 
   3.576241231555775*^9, 3.5762413084393187`*^9, {3.576241379821289*^9, 
   3.576241401864128*^9}, 3.576241477337061*^9, 3.5762415553995976`*^9, 
   3.5769213156036415`*^9, 3.5776118676076155`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.5719772224957275`*^9, 3.5756491001792345`*^9, 3.575651855997616*^9, 
   3.575716165678361*^9, 3.5757162200603094`*^9, 3.575726610828906*^9, 
   3.575772186799324*^9, 3.575772406936389*^9, 3.575772540254223*^9, 
   3.5757726386528425`*^9, 3.5758602645783854`*^9, 3.5762148031047363`*^9, {
   3.5762148425267363`*^9, 3.576214867765736*^9}, 3.5762154621113577`*^9, {
   3.576215568717017*^9, 3.5762155774908943`*^9}, 3.5762159238235245`*^9, 
   3.576216004208562*^9, 3.5762160599961405`*^9, 3.576216159779739*^9, 
   3.576216876962838*^9, 3.576216962555396*^9, 3.5762170180789485`*^9, 
   3.5762171384239817`*^9, {3.576217199820121*^9, 3.5762172279409323`*^9}, 
   3.576241231555775*^9, 3.5762413084393187`*^9, {3.576241379821289*^9, 
   3.576241401864128*^9}, 3.576241477337061*^9, 3.5762415553995976`*^9, 
   3.5769213156036415`*^9, 3.5776118676096153`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.6666666666666666`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.6666666666666666`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.5719772224957275`*^9, 3.5756491001792345`*^9, 3.575651855997616*^9, 
   3.575716165678361*^9, 3.5757162200603094`*^9, 3.575726610828906*^9, 
   3.575772186799324*^9, 3.575772406936389*^9, 3.575772540254223*^9, 
   3.5757726386528425`*^9, 3.5758602645783854`*^9, 3.5762148031047363`*^9, {
   3.5762148425267363`*^9, 3.576214867765736*^9}, 3.5762154621113577`*^9, {
   3.576215568717017*^9, 3.5762155774908943`*^9}, 3.5762159238235245`*^9, 
   3.576216004208562*^9, 3.5762160599961405`*^9, 3.576216159779739*^9, 
   3.576216876962838*^9, 3.576216962555396*^9, 3.5762170180789485`*^9, 
   3.5762171384239817`*^9, {3.576217199820121*^9, 3.5762172279409323`*^9}, 
   3.576241231555775*^9, 3.5762413084393187`*^9, {3.576241379821289*^9, 
   3.576241401864128*^9}, 3.576241477337061*^9, 3.5762415553995976`*^9, 
   3.5769213156036415`*^9, 3.5776118676106157`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.5719772224957275`*^9, 3.5756491001792345`*^9, 3.575651855997616*^9, 
   3.575716165678361*^9, 3.5757162200603094`*^9, 3.575726610828906*^9, 
   3.575772186799324*^9, 3.575772406936389*^9, 3.575772540254223*^9, 
   3.5757726386528425`*^9, 3.5758602645783854`*^9, 3.5762148031047363`*^9, {
   3.5762148425267363`*^9, 3.576214867765736*^9}, 3.5762154621113577`*^9, {
   3.576215568717017*^9, 3.5762155774908943`*^9}, 3.5762159238235245`*^9, 
   3.576216004208562*^9, 3.5762160599961405`*^9, 3.576216159779739*^9, 
   3.576216876962838*^9, 3.576216962555396*^9, 3.5762170180789485`*^9, 
   3.5762171384239817`*^9, {3.576217199820121*^9, 3.5762172279409323`*^9}, 
   3.576241231555775*^9, 3.5762413084393187`*^9, {3.576241379821289*^9, 
   3.576241401864128*^9}, 3.576241477337061*^9, 3.5762415553995976`*^9, 
   3.5769213156036415`*^9, 3.577611867611616*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083522694654`*^9, 3.522605223515625*^9, 3.522605920484375*^9, 
   3.522606219078125*^9, 3.522606299125*^9, 3.524842627921875*^9, 
   3.5331539101875*^9, 3.533154005984375*^9, 3.5332733909707603`*^9, 
   3.538722952041375*^9, 3.538977591036661*^9, 3.554715620749117*^9, 
   3.5719772224957275`*^9, 3.5756491001792345`*^9, 3.575651855997616*^9, 
   3.575716165678361*^9, 3.5757162200603094`*^9, 3.575726610828906*^9, 
   3.575772186799324*^9, 3.575772406936389*^9, 3.575772540254223*^9, 
   3.5757726386528425`*^9, 3.5758602645783854`*^9, 3.5762148031047363`*^9, {
   3.5762148425267363`*^9, 3.576214867765736*^9}, 3.5762154621113577`*^9, {
   3.576215568717017*^9, 3.5762155774908943`*^9}, 3.5762159238235245`*^9, 
   3.576216004208562*^9, 3.5762160599961405`*^9, 3.576216159779739*^9, 
   3.576216876962838*^9, 3.576216962555396*^9, 3.5762170180789485`*^9, 
   3.5762171384239817`*^9, {3.576217199820121*^9, 3.5762172279409323`*^9}, 
   3.576241231555775*^9, 3.5762413084393187`*^9, {3.576241379821289*^9, 
   3.576241401864128*^9}, 3.576241477337061*^9, 3.5762415553995976`*^9, 
   3.5769213156036415`*^9, 3.577611867612616*^9}],

Cell[BoxData["\<\"HydraulicLaminarOrifice.xml\"\>"], "Output",
 CellChangeTimes->{
  3.53315391021875*^9, 3.533154006015625*^9, 3.533273390986384*^9, 
   3.538722952057*^9, 3.538977591052286*^9, 3.554715620764737*^9, 
   3.5719772224957275`*^9, 3.575649100187235*^9, 3.5756518560106163`*^9, 
   3.575716165678361*^9, 3.5757162200759096`*^9, 3.5757266108445063`*^9, 
   3.5757721868149242`*^9, 3.5757724069519887`*^9, 3.575772540269823*^9, 
   3.5757726386528425`*^9, 3.5758602645783854`*^9, 3.576214803110736*^9, {
   3.5762148425387363`*^9, 3.576214867773736*^9}, 3.5762154621183586`*^9, {
   3.5762155687270184`*^9, 3.576215577499895*^9}, 3.576215923850527*^9, 
   3.5762160042285643`*^9, 3.5762160600271435`*^9, 3.576216159807739*^9, 
   3.576216876971839*^9, 3.5762169625673976`*^9, 3.57621701809395*^9, 
   3.576217138468986*^9, {3.5762171998531237`*^9, 3.5762172279739356`*^9}, 
   3.576241231555775*^9, 3.5762413084393187`*^9, {3.576241379821289*^9, 
   3.5762414018797283`*^9}, 3.576241477337061*^9, 3.5762415553995976`*^9, 
   3.5769213156886415`*^9, 3.577611867612616*^9}]
}, Open  ]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell["Valve43, 4-3 directional valve", "Section",
 PageWidth->WindowWidth],

Cell[CellGroupData[{

Cell["Component description", "Subsection",
 PageWidth->WindowWidth],

Cell["\<\
This subroutine simulates the flow trough a 4-3 directional valve.\
\>", "Text",
 PageWidth->WindowWidth],

Cell[CellGroupData[{

Cell[GraphicsData["Metafile", "\<\
CF5dJ6E]HGAYHf4PEfU^I6mgLb15CDHPAVmbKF5d0@0001EL0@0006@000030000000007d0001L0000
00000000002f4`00V`h00215CDH00040G1D007l000080000000000000000000080<005P200100@00
l000000000000000000004H000081`00nPH004M4BD<1002000<004CA^:l00000hPH000402@000g43
000901`0000001@0000V1Pl07P3ooooo100D0000EfmbI0h0CFUSLVmcKfId85M_LV@500002`800000
1@0000`2S@2o01`0003k0Q001`000000_080000000000U=iLgAUK@00200000`0RP4000X0302:0@`0
RP4000X0100002d1000500000P41000070000?/2lol00000002@0@000004@00BE6U]IG<PCVEg859_
KF5^0:j7kGO@Inmg7@X:30002P040000;@4100D000090P00000300007P0700005PB=0;l000000100
000V1Pl05P3ooooo003ooooooooool40002>00000`0001h01@0002h1000000D0000:0P0000050000
2@8000001@000042oooo00L0003l0P4000000000100002d10P080000nP85004000000000100002d1
0`0400000`4800L0000B18d0S@2o0<001@0000/2?02400D0000<0VX0T0050000309Z09001@0000@1
3@0000D0000^0AP0000500000P4100001@0000T2000000D000010_ooo`0300007P040000;@4200P0
003j0PH00@00000000040000;@4400D0000;0S`0Q00700006`B30<h0G`2Z00L0000K18<0l@1O0<d0
1`0001/4P`0D0El0l0050000509O0;@01@0001<2PP2d00D0000D0Ul0``0500004`:20<<01@0001@2
G`3F00D0000C0Ul0eP050000509P0=L01@0001<2I03G00D0000D0Ul0iP0500004`9T0>H01@0001@2
O@3G00D0000C0X80e`050000509m0>H01@0001<2PP3V00D0000D0Ul0nP0500004`:200T11@0001@2
PP3j00D0000C0Ul02@450000509m0=@01@0001<2O@3J00D0000D0Wd0h`0500004`9m0>T01@0001@2
I03E00D0000C0V@0f@050000509T0>@01@0001<2I03Y00L0003l0P0000000000100002d11@0<0000
90<40;@0P@2a07X0]`1j0;@0P@0<000090<40<<0H03006L0aP1W0<<0H00>000090<500T1PP030G/0
2@5i00X1PP090H803P0002@31@090El00`5V00T1J00:0El02@5O00D0000D0W40Q`0500004`9a0:X0
300002@3102Y0740XP1d0:80KP2Y074070000?/2m?l00000002@0@000004000@E6U]IG<0001>2PYU
YHO]Mjj7kGO@InmgCPX:I@002P040000;@4600L0000Q1@80F5I^08X01`0002450P1>D4`0_P0;0000
9PH?00`0ooooo`00000000001@0001@2PP3H00D0000C0Z<0f00<000090<40=P0P`3K08h0f02>0=P0
P`070000o0800?ooo`0000@0000]0@L0300002@3103H0:@0e02H0=P0V03H0:@02`0002H63`0<0?oo
ool10000000000/0000V1Pl0303ooooo000000000005000050:30>L01@0001<2Y03W00@0000]0@D0
300002@3103W08@0jP2?0>L0S`3W08@0100002d11`0<000090<40>L0Y@3S09T0i`2I0>L0Y@0;0000
9PH?00`0ooooo`40000000002`0002H63`0<0?ooool00000000000D0000D0Sd0eP0500004`9N0=H0
100002d11@0<000090<40=H0G@3C0580eP1B0=H0G@040000;@4700`0000T0`@0eP0l0=X0B03F04P0
eP0l00/0000V1Pl0303ooooo0@000000000;00009PH?00`0ooooo`00000000001@0001@2?@3V00D0
000C0Uh0iP040000;@4500`0000T0`@0iP1M0><0DP3V0580iP1M00@0000]0@L0300002@3103V03`0
jP180>H0B03V03`02`0002H63`0<0?ooool10000000000L0000Q1@80CUA<0?801`0002450P1>@IL0
_P0700008@D204i2U`3b00@0000W0Ooo10000?011@070000o0800?ooo`0000@0000]0@D020000?X2
00000000000000@0000]0@P0100002L1ool800009PH?00H0ooooo`40100002L1ool500000P410000
100002d10003000000000140000<0000200000/0000@0000OP0005d000090000400007h0001M0000
2P00010000000000000000T0000@0000_`0008d0001B0000C0400040000@00001`00000000000000
_080000000000002D`1i07<0M01U06d0000000000000000000000000000000000000000000000000
000000000000000000000000002PmA80_iE:00X60@0<000000000=Si3P@<0000:>Um00X60@0<d?Mg
ooooodSd4P000000F?@B00004`0Il_Qg1P000>064`0001<0R2TE033d4P0009H1F?DB0=@/nGMPf?Ug
oooooace4P1DAoIgh0HC05P:8BJ<m180000Q9/1J6`090000]mC]Ma0000000000F0XQ9P008@30m180
fLO]MeP:8BIH2R4V0@0003h=5P2dINeg6_DB0000000000000000000000000000000000410@410@41
0@7]MbD0000<00000@000180000<00000@000580001<0@000P000??oool0000000000000002@0@00
000000A0019D06T0K@1U07<0801>06D0M`0P0580K`1]0640KP000000000000000000000000000000
0000000000000000000:0:3e4P2oUDX02PH100`000000000f?T>10`0000XjGd02PH100c@mgOooooo
B?@B0000001Hm180000C01Wbn7L60000h0HC00004`28:AD0<?@B0000UP5HmA80e2ciMf3HnGOooooo
7?DB05A7mWOP1Q<0F0XQ9Xcd4P00024VY?@B02D00030FQ/0F0XQ9[;4kGL<0000b?@B01800030FQ/0
F0XQ9UP:8BH10000R0dF0000000SmA80000000000000000000000000000000000@410@410@410Neg
9@0000`000020000600000`0000000008@0000P0000N00006000000000000000_`0008d0000Q0000
200001H0000<0000000001P0000<0000000001T0000<0000oooo02D0000<00001@00P2D0000<0000
2000P1l0000H0000`0000;l0002=0000S@0000X0000@0000Q00003`00009000040000900001Z0000
2@000100002@0000JP0001@0000<00003@0001H0000<000060000180000<00000@0001P0000<0000
000001T0000<0000oooo0240000800009@0000`0000500209P0001`0000300001P00004000000000
000002D0000<00000`0000X0000@0000Q00003`0000[000060000:X0001O0000c@000880000[0000
60000<d0001O0000l0000880000[000060000?00001O00004`400880000K000040000;@0001O0000
=P000100002d0000PP0001/0000@0000``0005l0000f000040000<<0002200006`000100003F0000
G`0003H0000@0000eP0005l0000K000040000=L0001P0000=P000100003G0000I00001/0000@0000
iP0005l0000f000040000>H0001T00006`000100003G0000O@0003H0000@0000e`000880000K0000
40000>H0001m0000=P000100003V0000PP0001/0000@0000nP0005l0000f0000400000T100220000
6`000100003j0000PP0003H0000@00002@4005l0000K000040000=@0001m0000=P000100003J0000
O@0001/0000@0000h`0007d0000f000040000>T0001m00006`000100003E0000I00003H0000@0000
f@0006@0000K000040000>@0001T0000=P000100003Y0000I00002L0000H00001000000000000000
000002D0000<0000100005H0000/00009`0003H0000]0000?@0000@0002d0840/@1j0;L0NP2d0840
EP0002`0000e0000800003X0000V000010000<<0H03006L0aP1W0<<0H01F0000<00006l0000f0000
M@0003d0000500002@6200<1N`090GT02P6200T1PP1F0000<00006l0000O0000M@0002L000050000
2@5O00<1IP090FP02P5O00T1G`0K0000400008L0001a0000=P000100002Z0000L@0005H0000/0000
6P0002`0000P0000<@0000@0002Y0740XP1d0:80KP2Y0740DP0004`100050000m?ooo`0000000000
0000090100000000100045@0J@1]06D0L`0000000000000000000000000000000000000000000000
00000000000000000000000000000?eo0>3mO`00000000000000000000000000300013<7000c1`C?
000400C?0004c`00IQ[]Mc<71<m<m180`5XK063d4P000000[O;hM`004`3Pc1@0000003cd4P30FQ/0
_?@B0=@/nGM`f?UgooooohSd4P3LCOIg/0HC00005004000000000;P@5P2Pm180Rkk]M`D0003<m180
<B[`M`004`000000F0XQ9P40003@41H0^10F01We4P00000000000000000000000000000000010@41
0@410@41kGLU0000300000D0001D0000F00000D0000Q00004`0002h000010000000<@Y]P34::0000
KP000080001<00000000000000000000oooooooooom@0000F01F00T000080000E00005P0000c0000
0`000440000@00000@00000034:KH0a2_P0004`000020000C00000000000000000000?oooooooooo
D00004h0D0090000200001/0000@0000f0000880000f000040000=P0002S0000EP0002`0001:0000
?P0004`00018000010000=P0P`3K08h0f02>0=P0P`0W0000600000H000000000oooo0000000U0000
300000H0001F0000;00004H0001A0000BP0005/000040000f02T0=@0V03H09P0f02T01/0000@0000
i`0008<0000f000040000>L0002T00009@0000`000040000EP0002`0001G0000?`0005T000190000
10000>L0Q03Z08l0i`2?0>L0Q00U0000300000H0001F0000;00005<0001B0000E`0005`000040000
i`2U0><0V@3W09T0i`2U01/0000@0000eP0003d0000f000040000=H0001N00009@0000`000040000
EP0002`0001500004`0004P0000M000010000=H0G@3C0580eP1B0=H0G@0U0000300000H0001F0000
;00004P000000000B`0000/000040000eP0l0=X0B03F04P0eP0l01/0000@0000iP0003d0000f0000
40000>H0001N00009@0000`000040000EP0002`0001C00004`0005H0000M000010000>H0G@3S0580
iP1B0>H0G@0U0000300000H0001F0000;00005H000000000F@0000/000040000iP0l0>X0B03V04P0
iP0l05@0001H0000H00000<0001_000040000040000000a2Vf0<@_80001<00000P0004`000000000
00000000003ooooooooooe00001>05@02@0000T0001D0000F00003<000150000@P00058000010000
000<@Y]P34:n0000U`000080001<00000000000000000000oooooooooom@0000CP1100T000090000
E00005P0001P0000A@0006h0001B00000@00000034:KH0a2lP0009L000020000C000000000000000
00000?ooooooooooD00004h0@P09000020000280000<0000ooooobP0000<0000100002L0000H0000
10000000003oool0000002D0000<0000100002H0000L00001`0000000000000000000000000U0000
300000L0000R000030000?oooolR000030000?oooolB000030000040000U000030000040000U0000
300000L0080U000030000000080`0000300000l0080U0000300000d0081;00004000000000050000
:00000`000010000:00000`000020000:00000`000030000:00000`000040000:00000`000050000
:00000`000060000:00000`0000700003P0001@000000000400001@0
\>"], "Graphics",
 ImageSize->{122, 92},
 ImageMargins->{{0, 0}, {0, 0}},
 ImageRegion->{{0, 1}, {0, 1}}],

Cell[GraphicsData["Metafile", "\<\
CF5dJ6E]HGAYHf4PEfU^I6mgLb15CDHPAVmbKF5d0@0002;40@0006@0000000000@0003D1002S0000
000000000024<000;aX00215CDH00040a2800<X000080000000000000000000080<005P200100@00
l000000000000000000004H000083000o0/004M4BD<1002000<006_mKDD00000i0/000402@000o85
000902d0000001@0000V1Pl07P3ooooo100D0000EfmbI0h0CFUSLVmcKfId85M_LV@500002`800000
1@0000`2o@3E0A`0003k0Q001`000000_080000000000U=iLgAUK@00200000`0RP4000X0302:0@`0
RP4000X0100002d1000500000P41000070000?/2lol00000002@0@000004@00BE6U]IG<PCVEg859_
KF5^0:j7kGO@Inmg7@X:30002P040000;@4100D000090P00000300007P0700005PCm0=D100000100
000V1Pl05P3ooooo003oooooooooomP1003n00000`0001h01@0002h1000000D0000:0P0000050000
2@8000001@000042oooo00L0003l0P4000000000100002d10P080000nP85004000000000100002d1
0`0400000`4800L0000B1?d0o@3E0ML11@0000/2`P1@00D0000<0[h0H@45000030:n06411@0000@1
3@0000D0000^0AP0000500000P4100001@0000T2000000D000010_ooo`0300007P0;00009PH?00`0
ooooo`000000000020000?X21P010000000000@0000]0@@01@0000/2`P1@00D0000D0SH1b0050000
4`8f0@P11@0001@2=P490@D0000C0TD12@45000050950@T11@0001<2A@5:0@D0000D0TD1BP450000
4`8f0DX11@0001@2=P5:0@D0000C0SH1H`450000508C0F<11@0001<2=@5S0@D0000D0Q<1BP450000
4`8C0F<11@0001@24`5:0@D0000C0P@1BP45000050840@T11@0001<2105:0@D0000D0P@12@450000
4`8C0@T11@0001@24`7800D0000C0Q<12@450000508C0LP01@0001<2107800D0000D0P@1Q`050000
4`840LP01@0001@2106700D0000C0Q<1Q`050000508C0G<01@0001<24`6700D0000D0Q<1L`050000
4`8f0G<01@0001@2=P5c00D0000C0SH1Q`05000050950HL01@0001<2=P6700D0000D0TD1Q`050000
4`950LP01@0001@2=P7800D0000C0TD1b00;00009PH?00`0ooooo`40000000002`0002H63`0<0?oo
ool00000000000L0003l0P00oooo0000100002d11@0700006`@]0H`17@5@02d000120@D0000X0000
200000P0000100400000020000000000000000000000000000000?ooo`2Z0000E@000:X0001E0000
ZP0005D0002Z0000E@0000@0000]0@H0100002d10`0>000090<505409`6;0BL1R`4Z0E40:P5A02L1
;@0004811@0002P000080000200000400@00000080000000000000000000000000000000oooo0?l0
003M0000o`0007L0003o0000g@000?l0001g0000100002d11`040000l04600h0000T0`D0D@0P0H/1
806;0B@1D@0T0E4080440000;@4500@0003`0@L0100002d1100700006`@g0L@04`6<00L0000K13L1
AP4C0@h1;@0004811@0002P000080000200000400@00000080000000000000000000000000000000
oooo0:X0001E0000ZP0005D0002Z0000E@000:X0001E0000100002d11P040000;@4300h0000T0`D0
S@0[0L<0:`730341S@0a0Hd0:`4]0000@P450000:00000P0000800000@010000000P000000000000
0000000000000000003oool0ZP0005D0002Z0000E@000:X0001E0000ZP0005D000040000;@4700@0
003`0@H03P0002@31@0?0B/1A@4[0DD1<@4?0C413`4[0Bd000120@D0000X0000200000P000010040
0000020000000000000000000000000000000?ooo`3o0000g@000?l0001g0000o`000=d0003o0000
M`0000@0000]0@H010000?011`0>000090<508d0607301P1``0R0Hd08P6=01P1;@0004811@0002P0
00080000200000400@00000080000000000000000000000000000000oooo0?l0003M0000o`0007L0
003o0000g@000?l0001g0000100002d11`040000l04600h0000T0`D03`4H0DD160550B813`4R0@l1
60440000;@4400D0000D0S@1S@0500004`8d0L<01@0001@2=04>0@D0000C0S@1A@4;00009PH?00`0
ooooo`40000000001@0001@2<P7300D0000C0Uh1``050000508h0LP01@0001<2GP7800P0003j0PH0
0P00000000040000;@4600D0000D0^`0N@0500004`8B0GT01@0001@2k01U00D0000C0^`0i@050000
50;/05l11@0001<24`5O0@D0000D0/T0j@0500004`8C0NT01@0001@2k03]00D0000C0^`0GP450000
50960JP01@0001<2N06X00D0000D0TH1:P4500004`9h0BX1100002d110040000l04600D0000D0UT1
]@0500004`9I0N801`000?`20000000000040000;@4600@0003`0@L0300002@3103105T1^P1L0KX0
EP7105T1300002@3103905T1d01L0M00EP7905T11@0001@2<P550@D0000C0Uh1A@450000508h0DX1
1@0001<2GP5:0@D0000D0UT1=`4500004`9I0F@1300002@310130ET1?05L0C`1EP530ET1300002@3
101;0ET1DP5L0E81EP5;0ET12`0002H63`0<0?ooool00000000000D0000D0Uh13P4500004`8b0@h1
1@0001@2GP490@D0000C0SP12@450000509I0Nl01@0001<2F@4L0@`0000T0`@0405I0AL1G04G0EH1
405I0@`0000T0`@0205I0@41G0410EH1205I0@/0000V1Pl0303ooooo0@000000000;00009PH?00`0
ooooo`00000000001@0001@2GP6<00D0000C0S81S0050000509N0HL01@0001<2>06700D0000D0UT1
K@0500004`9I0IX0300002@3102>05T1U@1L0ID0EP6>05T1300002@3102605T1O`1L0Gl0EP6605T1
2`0002H63`0<0?ooool10000000001`0003k0_Co00000000T0400000100045AYKFEc0000H@X::ZF7
kGN^Qnegd6O_Mf4:2RX000X0100002d11`0700008@D204i1N06/00L0000Q1@80CT9h0AD11`000245
0P1>D=00l00700008@D204iDi`1J00L0000H1>l0O03Y07H020000245101H@E@`E@5N00P0000Q1@@0
F45@<5D1dP0800008@D405Q2E31E0EL120000245101H@U0`IP7R00D0000D0RD1R`4500004`8U0Jh1
300002@3102;0BD1TP4X0I818P6;0BD11`0002450P1HER41V`4400009`7oo`@0003`0@D01`000?`2
003oool000040000;@4500P0003j0P000000000000040000;@4800@0000W0Ooo200002H63`060?oo
ool100@0000W0Ooo1@0000810@0000@0000]0@000`0000004@0000`0000800002`000100000g0@00
Z00000T0000@0000=`400:P0000:000040000000000000002@000100003E0@00o@000580001<0@00
0@0001000007000000000000002l0P0000000000009C07T0L`1d06D0K@0000000000000000000000
00000000000000000000000000000000000000000000000000000:3e4P2oUDX02PH100`000000000
f42O0``0000XjGd02PH100c@mgOoooooB?@B0000001Hm180000C01Wbn7L60000h0HC00004`28:AD0
<?@B0000UP5HmA80e2ciMf3HnGOooooo7?DB05A7mWOP1Q<0HPXQ78cd4P00024L`5XK00T0002ge>eg
40000000001R2R4L000Q0<3d4P3IanegHPXQ768:8A`10000gY/F0;AUkGLJmA800000000000000000
00000000000000000@410@410@410Neg9@0000`0000100004P0000`000010000DP0004`100020000
loooo`0000000000000009010000000014004U@0J@1]06D0L`0P04h0I@1g0200DP1_06d0H@1^0000
0000000000000000000000000000000000000000000000X0X?DB0;nEBP0:1P4030000000003H@9l3
300002SYO@0:1P403=3gMooooom8m180000005Sd4P0001<06O;hM`H0003P1Q<0000C08PY5@0`m180
002F0ESe4P3D;?UgH=SiMooooolLmA80E4OfMn064`1R2R4LS?@B00008AbTm1809@000<1J6`1R2R4L
//C]M``00038m1804P000<1J6`1R2R4LHPXQ7040000XW1H0000002?e4P0000000000000000000000
0000000000010@410@410@41kGLU000030000080000H000030000000000Q0000200001h0000H0000
00000000003E0@00o@000240000800005P0000`000000000600000`0000000006@0000`0003oool0
9@0000`0000500209@0000`0000800207`0001P0003G0@00e@400?d0003m00002P000100001@0000
`P0000T0000@0000H@400;h00009000040000641002n0000500000`0000=00005P0000`0000H0000
4P0000`000010000600000`0000000006@0000`0003oool08@0000P0000V0000700000<000060000
0@000000000000009@0000`0000300002P000100001@0000`P0001/0000@0000b00003H1000f0000
400000P1000f0@006`00010000090@00=P4003H0000@00002@4004D1000K0000400000T100150@00
=P000100001:0@00A@4001/0000@0000BP4004D1000f0000400004X1000f0@006`000100001:0@00
=P4003H0000@0000H`4003H1000K0000400006<1000C0@00=P000100001S0@00=@4001/0000@0000
BP4001<1000f0000400006<1000C0@006`000100001:0@004`4003H0000@0000BP4000@1000K0000
400000T100040@00=P000100001:0@00104001/0000@00002@4000@1000f0000400000T1000C0@00
6`000100003800004`4003H0000@00002@4001<1000K000040000<P0000C0@00=P00010000380000
104001/0000@0000Q`0000@1000f000040000<P000040@006`00010000270000104003H0000@0000
Q`0001<1000K0000400007<0000C0@00=P000100002700004`4001/0000@0000L`0001<1000f0000
400007<0000f0@006`000100001c0000=P4003H0000@0000Q`0003H1000K0000400008L000150@00
=P00010000270000=P4001/0000@0000Q`0004D1000f000040000<P000150@006`00010000380000
=P4003H0000@0000b00004D1000W0000600000@000000000oooo0000000U0000300000@0000[0000
60000500000M0@00R`4002`1001N0000L00000D00000000080000300001@0000800002P000080000
200000400@00000080000000000000000000000000000000oooo0:X0001E0000ZP0005D0002Z0000
E@000:X0001E00009@0000`0000500009@0000`000080020EP00030000010000F@0001H1001L0000
1@0005409`6;0BL1R`4Z0E40:P5A02L1GP0007000006000000000200000`0000D0000200000X0000
200000P0000100400000020000000000000000000000000000000?ooo`3o0000g@000?l0001g0000
o`000=d0003o0000M`0002D0000<00001P0002P0000<00001@0005H0000`00000@0005<0000F0@00
E`0000D0001A0201R`4P0H/1905A02@1D@0P0BD0000<0000100002P0000<00001P0002D0000<0000
0`0002/0000H0000S00001<100330000=P4002/0000H00003P4001<100150@00=P4005h0001`0000
1P000000000P0000<0000500000P0000:00000P0000800000@010000000P00000000000000000000
00000000003oool0ZP0005D0002Z0000E@000:X0001E0000ZP0005D0000U0000300000H0000U0000
300000P0081F0000<00003H0001M0000IP00068000050000S@0[0L<0:`730341S@0a0Hd0:`5N0000
L00000D00000000080000300001@0000800002P000080000200000400@0000008000000000000000
0000000000000000oooo0:X0001E0000ZP0005D0002Z0000E@000:X0001E00009@0000`000050000
:00000`000060000EP000300002Y0000G@000=T0001R00001@0000l1:`550B/1A@4a0@l1<@4?0B/1
GP0007000006000000000200000`0000D0000200000X0000200000P0000100400000020000000000
000000000000000000000?ooo`3o0000g@000?l0001g0000o`000=d0003o0000M`0002D0000<0000
1P0002P0000<00001@0005H0000`0000=P0004`0001V0000E@0000D0002=01P1``0H0L<08P6=0281
S@0H0Eh0001`00001@000000000P0000<0000500000P0000:00000P0000800000@010000000P0000
000000000000000000000000003oool0o`000=d0003o0000M`000?l0003M0000o`0007L0000U0000
300000D0000X0000300000H0001F0000<0000:T0001<0000f@0005D0000500003`4H0DD160550B81
3`4R0@l1604U0000300000<0000K0000400008d0000d0@00=P00010000330000=04001/0000@0000
3P4003@1000f0000400004D1000d0@006`00010000330000<P4003H0000@0000``0005h1000K0000
40000<P0000h0@00=P00010000380000GP4002H0000L00001P0000H00002000000000000000U0000
300000H0000K0000400007T0003/0000=P000100001i00004P4001/0000@0000I@000>`0000f0000
40000>D0003/00006`000100001O0@00k00003H0000@0000G`4001<1000K000040000>T000390000
=P000100003Y00004`4001/0000@0000k@000>`0000f0000400005h1003/00006`000100002X0000
AP4003H0000@0000Z00007P1000K0000400002X100160@00=P000100000Z0@00N04002D0000<0000
0`0002P0000<00001P0001/0000@0000]@0005T1000f000040000>80001I0@009`0001P000060000
00000000000000009@0000`000060000:00000`000050000EP0002`0001N0000P`0006@000280000
10000<40F@6j05`1^P1F0L40F@5F0000;00006/000230000L@0008P000040000b@1I0M00G07@05H1
b@1I0A/0000@0000A@400381000f0000400004D1001N0@006`000100001:0@00>04003H0000@0000
BP4005h1000K0000400003L1001I0@00=P000100001T0@00F@4005H0000/0000d@0008<0003G0000
R00000@000130ET1?05L0C`1EP530ET1EP0002`0003N0000P`000>@000280000100004/1F@5B0E`1
DP5F0D/1F@4K0000400000h1001N0@00=P000100000>0@00<P4001/0000@00002@4005h1000f0000
400000T1000h0@006`000100003_0000F@4003H0000@0000704005T1001F0000;0000:X000230000
/00008P000040000405I0AL1G04G0EH1405I0EH0000/0000W00008<0002S0000R00000@000080ET1
0@5L0@41EP480ET16`000100002<0000GP4003H0000@0000S0000381000K0000400008L0001N0@00
=P00010000270000>04001/0000@0000K@0005T1000f0000400009X0001I0@00EP0002`0000g0000
P`0003d000280000100008h0F@6E05`1U@1F0Hh0F@5F0000;00002X000230000<00008P000040000
QP1I0Gl0G05o05H1QP1I0E80001<0@001@000?Coool0000000000000002@0@00000000@0011D06T0
K@1U07<0000000000000000000000000000000000000000000000000000000000000000000000000
003iMooooolLm180g4gfMh064`0PCaD084lE0000001[2Q03<`L42`0010040000H?@B034Zl7L001<0
0000021?5@1Pm18000000:gbn7L001<0h<`D0000000lm1800H000;cd4P3D;?UgL=SiMooooon8m180
g4gfMk064`0001@010000000003@YAH0X?@B08^nkGL50000c?@B034Zl7L001<00000068:8A`10000
oZDF0=2U5P0ImA80000000000000000000000000000000000@410@410@410Neg9@0000`000050000
E00005P0001A0000UP000600002S00000@0009aZ3D93N@e2[00007P100020000C000000000000000
00000?ooooooooooD00004h0@@0900002@0005@0001H0000[P0009H0002l0000X`000040002LJPe2
@gT=@QD1001h0@000P0004`00000000000000000003ooooooooooe00001>04802@0000P0001D0000
F00008d000010000V`0000h000010000W6X=@T=i3D;`0000d0000080001<00000000000000000000
oooooooooom@0000CP1@00T000080000E00005P0000900005P0001P0000S00000@0009aZ3D93N@e2
FP000>L000020000C00000000000000000000?ooooooooooD00004h0E00900002@0002X0000H0000
MP000>T0001k0000kP0005@0001T0000300007L0000Y0000Q0000040002LJPe2@gT=@Uh0001E0@00
100004`00000000000000000003ooooooooooe@0001H0440E00`00T0000900002@0000L0001D0000
I00007<0001g0000S`0008@000010000W6X=@T=i3D;B0000E@4000@0001<00000000000000000000
oooooooooomD0000F0110500<00900002@0000P000070000E00006@0003Y0000M`0000D100240000
0@0009aZ3D93N@e2E`4005D100040000C00000000000000000000?ooooooooooE00005P0@P1D0300
2@0000P0000900001`0005@0001T0000P@0008H0002L0000T`000040002LJPe2@gT=@^80001V0@00
100004`00000000000000000003ooooooooooe@0001H0480D00`00T000080000200000L0000K0000
400008/1000U0@00=P000100002^0@009@4005H0000/00005P4005D0000M0@00FP0000@0002;0BD1
TP4X0I818P6;0BD1E00005P0000U0@00B@0003<1001F00000@0009aZ3D93N@e2V`40024100020000
C00000000000000000000?ooooooooooD00005P0EP09000020000280000<0000ooooobP0000<0000
100002L0000H000010000000003oool0000002D0000<0000100002H0000L00001`00000000000000
00000000000U0000300000L0000R000030000?oooolR000030000?oooolB000030000040000U0000
30000040000U0000300000L0080U000030000000080`0000300000l0080U0000300000d0081;0000
4000000000050000:00000`000010000:00000`000020000:00000`000030000:00000`000040000
:00000`000060000:00000`000050000:00000`0000700003P0001@000000000400001@0
\>"], "Graphics",
 ImageSize->{309, 162},
 ImageMargins->{{0, 0}, {0, 1}}]
}, Open  ]]
}, Open  ]],

Cell[CellGroupData[{

Cell["Resetting parameters", "Subsection",
 PageWidth->WindowWidth],

Cell[BoxData[{
 RowBox[{
  RowBox[{"nodeConnections", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"constantParameters", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"variableLimits", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"variable2Limits", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"localExpressions", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"expressions", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"systemEquationsDa", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"boundaryEquations", "=."}], ";"}]}], "Input",
 CellChangeTimes->{{3.50416099565625*^9, 3.504161071125*^9}, {
  3.504171390828125*^9, 3.504171394640625*^9}}]
}, Open  ]],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<Valve43\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"brief", "=", "\"\<A hydraulic directional valve\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.507887022343302*^9, 
   3.507887057967846*^9}, {3.5078871702320337`*^9, 3.507887175028847*^9}, {
   3.5158208831437864`*^9, 3.51582092036206*^9}, {3.5158209798300486`*^9, 
   3.51582099300181*^9}, {3.522605661421875*^9, 3.522605661625*^9}, {
   3.565433404364499*^9, 3.5654334224825306`*^9}, {3.5695965311236906`*^9, 
   3.569596540324217*^9}, {3.5695966075860643`*^9, 3.569596615187499*^9}, 
   3.5757721151019983`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"p", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Pressure port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"t", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Tank port\>\""}], "]"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"a", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Load port A\>\""}], "]"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"b", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Load port B\>\""}], "]"}]}], 
    "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.503919051294972*^9, 3.503919119154347*^9}, {
   3.503923736440875*^9, 3.503923751003375*^9}, {3.5039293570625*^9, 
   3.503929406765625*^9}, 3.50394250446875*^9, {3.50399668911909*^9, 
   3.5039966973713074`*^9}, {3.507548807751546*^9, 3.5075488260955305`*^9}, {
   3.515612779640625*^9, 3.515612784234375*^9}, {3.575649090069656*^9, 
   3.575649091319728*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputVariables", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{"{", 
     RowBox[{
     "xv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
      "\"\<Spool position\>\""}], "}"}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.571994842405704*^9, 3.571994911670148*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "rho", ",", "860.", ",", "double", ",", "\"\<kg/m3\>\"", ",", 
       "\"\<oil density\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Cq", ",", "0.67", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Flow coefficient.\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Sd", ",", ".001", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<spool diameter\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frap", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(P-A)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frat", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(A-T)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frbp", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(P-B)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frbt", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(B-T)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xap0", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Underlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xat0", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Underlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xbp0", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Underlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xbt0", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Underlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xvmax", ",", "0.01", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Max opening\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "plam", ",", "10000.", ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Turbulence onset pressure\>\""}], "}"}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 PageWidth->WindowWidth,
 CellChangeTimes->{{3.503916073562605*^9, 3.50391608476573*^9}, {
   3.5039161716261826`*^9, 3.503916172813698*^9}, 3.503919167716847*^9, {
   3.505588895375*^9, 3.5055889695*^9}, {3.505589016640625*^9, 
   3.505589034984375*^9}, {3.505589276125*^9, 3.505589277078125*^9}, {
   3.505590362109375*^9, 3.50559036675*^9}, {3.505590803484375*^9, 
   3.50559082509375*^9}, {3.5075449148100324`*^9, 3.507544933372048*^9}, {
   3.5075449813674784`*^9, 3.507545001403344*^9}, {3.507562171421875*^9, 
   3.50756217203125*^9}, {3.5158237803828354`*^9, 3.5158238002578354`*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"qpa", " ", "=", " ", 
   RowBox[{"Kspa", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pp", "-", "pa"}], ",", "plam"}], "]"}]}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"qta", " ", "=", " ", 
   RowBox[{"Ksta", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pt", "-", "pa"}], ",", "plam"}], "]"}]}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"qpb", " ", "=", " ", 
   RowBox[{"Kspb", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pp", "-", "pb"}], ",", "plam"}], "]"}]}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"qtb", " ", "=", " ", 
   RowBox[{"Kstb", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pt", "-", "pb"}], ",", "plam"}], "]"}]}]}], ";"}]}], "Input",
 CellChangeTimes->{
  3.504198984265625*^9, 3.505589001421875*^9, {3.5075513871678333`*^9, 
   3.5075513902618604`*^9}, {3.5158238134609604`*^9, 3.5158238195390854`*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"Xpa", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{"xv", " ", "+", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "+", " ", "Xap0"}]}], "]"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"Xta", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{
      RowBox[{"-", "xv"}], " ", "+", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "+", " ", "Xat0"}]}], "]"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"Xpb", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{
      RowBox[{"-", "xv"}], " ", "+", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "+", " ", "Xbp0"}]}], "]"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"Xtb", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{"xv", " ", "+", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "+", " ", "Xbt0"}]}], "]"}]}], ";"}]}], "Input",
 CellChangeTimes->{{3.50558966315625*^9, 3.50558969203125*^9}, {
  3.5055897985*^9, 3.505589808*^9}, {3.507562582*^9, 3.507562588921875*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"wpa", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frap"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"wta", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frat"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"wpb", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frbp"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"wtb", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frbt"}]}], ";"}]}], "Input",
 CellChangeTimes->{{3.5055896995*^9, 3.505589724359375*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"localExpressions", " ", "=", " ", 
   RowBox[{"{", "\n", 
    RowBox[{
     RowBox[{"Ks", "==", 
      RowBox[{"Cq", "*", 
       FractionBox[
        RowBox[{"N", "[", 
         SqrtBox["2"], "]"}], 
        SqrtBox["rho"]]}]}], ",", "\n", 
     RowBox[{"Kspa", "==", 
      RowBox[{"Xpa", " ", "wpa", " ", "Ks"}]}], ",", "\n", 
     RowBox[{"Ksta", "==", 
      RowBox[{"Xta", " ", "wta", " ", "Ks"}]}], ",", "\n", 
     RowBox[{"Kspb", "==", 
      RowBox[{"Xpb", " ", "wpb", " ", "Ks"}]}], ",", "\n", 
     RowBox[{"Kstb", "==", 
      RowBox[{"Xtb", " ", "wtb", " ", "Ks"}]}]}], "\n", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.5055892220625*^9, 3.505589231265625*^9}, 
   3.505589573890625*^9, 3.505813673194783*^9, {3.5058212753418417`*^9, 
   3.5058212802010612`*^9}, {3.5058213722606153`*^9, 3.505821373432453*^9}, {
   3.5075515846230235`*^9, 3.507551585263706*^9}, 3.507551672580868*^9, {
   3.5719028277643366`*^9, 3.571902864408801*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemEquationsDA", " ", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"qp", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{
        RowBox[{"-", "qpa"}], "-", "qpb"}], ")"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"qt", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{
        RowBox[{"-", "qta"}], "-", "qtb"}], ")"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"qa", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{"qpa", "+", "qta"}], ")"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"qb", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{"qpb", "+", "qtb"}], ")"}]}]}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.50754870493773*^9, 3.507548721672319*^9}, {
  3.5719027806054535`*^9, 3.5719028099647055`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", " ", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"pp", " ", "==", " ", 
      RowBox[{"cpe", " ", "+", " ", 
       RowBox[{"Zcpe", " ", "qp"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"pt", " ", "==", " ", 
      RowBox[{"cte", " ", "+", " ", 
       RowBox[{"Zcte", " ", "qt"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"pa", " ", "==", " ", 
      RowBox[{"cae", " ", "+", " ", 
       RowBox[{"Zcae", " ", "qa"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"pb", " ", "==", " ", 
      RowBox[{"cbe", " ", "+", " ", 
       RowBox[{"Zcbe", " ", "qb"}]}]}]}], "\n", "      ", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.50559120440625*^9, 3.50559120803125*^9}, {
  3.505591469296875*^9, 3.505591475125*^9}, {3.5075486382337513`*^9, 
  3.5075486907344227`*^9}, {3.51582107740806*^9, 3.5158210786736856`*^9}, {
  3.515900481708085*^9, 3.5159004828643227`*^9}, {3.5719027853790617`*^9, 
  3.571902819511922*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", " ", "=", " ", 
   RowBox[{"{", 
    RowBox[{
    "qp", ",", "qt", ",", "qa", ",", "qb", ",", "pp", ",", "pt", ",", "pa", 
     ",", "pb"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.503916309424025*^9, 3.5039163118146653`*^9}, 
   3.504160933453125*^9, 3.504161512171875*^9, {3.50416161690625*^9, 
   3.504161620484375*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input"],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\(\\(\\\"t\\\" \[Ellipsis] \\\"me\\\"\\)\\) \[Rule] \
\\(\\(\\\"\\\" \[Ellipsis] \\\"\\\"\\)\\)\\)\\), \\(\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\)}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \
\\(\\({\\(\\(\\\"isopath\\\" \[Rule] \\\"HydraulicValve43.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicValve43.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\
\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.2`\\)\\), \\(\\(\
\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"Pp\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.4`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"Pt\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \
\\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.8`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \
\[Rule] \\\"Pb\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \
0.5`\\)\\), \\(\\(\\\"y\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"270\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"xv\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\\"version\\\" \[Rule] \\\"0.1\\\"}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\\\"typename\\\" \
\[Rule] \\\"HydraulicValve43\\\"\\)\\), \\(\\(\\\"displayname\\\" \[Rule] \
\\\"HydraulicValve43\\\"\\)\\)}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\
\\\", \\(\\({\\(\\(\\\"isopath\\\" \[Rule] \
\\\"HydraulicValve43.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\
\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicValve43.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \\(\\(\
\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\[NoBreak] \
is not a list of contents. The third item in an XMLElement must be a list of \
contents, even if it is an empty list. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153914140625*^9, 
   3.53315400978125*^9, 3.533273392064433*^9, 3.53872295277575*^9, 
   3.538977592521036*^9, 3.5547156212021084`*^9, 3.5719772230417376`*^9, 
   3.575649101170291*^9, 3.5756518565216455`*^9, 3.5757161663959656`*^9, 
   3.5757162206843133`*^9, 3.575726611452907*^9, 3.5757721875637255`*^9, 
   3.57577240774759*^9, 3.575772540815824*^9, 3.575772639276843*^9, 
   3.575860265856962*^9, 3.576214804554736*^9, {3.576214844330736*^9, 
   3.5762148691007357`*^9}, 3.5762154634584923`*^9, {3.5762155718413296`*^9, 
   3.5762155788310285`*^9}, 3.5762159259717393`*^9, 3.576216006539795*^9, 
   3.5762160625393944`*^9, 3.5762161622727385`*^9, 3.5762168792370653`*^9, 
   3.576216964907632*^9, 3.5762170205371943`*^9, 3.5762171409962387`*^9, {
   3.5762172023823767`*^9, 3.576217230409179*^9}, 3.5762412328973775`*^9, 
   3.5762413099525213`*^9, {3.5762413811784916`*^9, 3.5762414032993307`*^9}, 
   3.5762414788970633`*^9, 3.5762415566476*^9, 3.576921315866641*^9, 
   3.5776118677966347`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153914140625*^9, 
   3.53315400978125*^9, 3.533273392064433*^9, 3.53872295277575*^9, 
   3.538977592521036*^9, 3.5547156212021084`*^9, 3.5719772230417376`*^9, 
   3.575649101170291*^9, 3.5756518565216455`*^9, 3.5757161663959656`*^9, 
   3.5757162206843133`*^9, 3.575726611452907*^9, 3.5757721875637255`*^9, 
   3.57577240774759*^9, 3.575772540815824*^9, 3.575772639276843*^9, 
   3.575860265856962*^9, 3.576214804554736*^9, {3.576214844330736*^9, 
   3.5762148691007357`*^9}, 3.5762154634584923`*^9, {3.5762155718413296`*^9, 
   3.5762155788310285`*^9}, 3.5762159259717393`*^9, 3.576216006539795*^9, 
   3.5762160625393944`*^9, 3.5762161622727385`*^9, 3.5762168792370653`*^9, 
   3.576216964907632*^9, 3.5762170205371943`*^9, 3.5762171409962387`*^9, {
   3.5762172023823767`*^9, 3.576217230409179*^9}, 3.5762412328973775`*^9, 
   3.5762413099525213`*^9, {3.5762413811784916`*^9, 3.5762414032993307`*^9}, 
   3.5762414788970633`*^9, 3.5762415566476*^9, 3.576921315866641*^9, 
   3.5776118677986345`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.2`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.2`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153914140625*^9, 
   3.53315400978125*^9, 3.533273392064433*^9, 3.53872295277575*^9, 
   3.538977592521036*^9, 3.5547156212021084`*^9, 3.5719772230417376`*^9, 
   3.575649101170291*^9, 3.5756518565216455`*^9, 3.5757161663959656`*^9, 
   3.5757162206843133`*^9, 3.575726611452907*^9, 3.5757721875637255`*^9, 
   3.57577240774759*^9, 3.575772540815824*^9, 3.575772639276843*^9, 
   3.575860265856962*^9, 3.576214804554736*^9, {3.576214844330736*^9, 
   3.5762148691007357`*^9}, 3.5762154634584923`*^9, {3.5762155718413296`*^9, 
   3.5762155788310285`*^9}, 3.5762159259717393`*^9, 3.576216006539795*^9, 
   3.5762160625393944`*^9, 3.5762161622727385`*^9, 3.5762168792370653`*^9, 
   3.576216964907632*^9, 3.5762170205371943`*^9, 3.5762171409962387`*^9, {
   3.5762172023823767`*^9, 3.576217230409179*^9}, 3.5762412328973775`*^9, 
   3.5762413099525213`*^9, {3.5762413811784916`*^9, 3.5762414032993307`*^9}, 
   3.5762414788970633`*^9, 3.5762415566476*^9, 3.576921315866641*^9, 
   3.577611867799635*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153914140625*^9, 
   3.53315400978125*^9, 3.533273392064433*^9, 3.53872295277575*^9, 
   3.538977592521036*^9, 3.5547156212021084`*^9, 3.5719772230417376`*^9, 
   3.575649101170291*^9, 3.5756518565216455`*^9, 3.5757161663959656`*^9, 
   3.5757162206843133`*^9, 3.575726611452907*^9, 3.5757721875637255`*^9, 
   3.57577240774759*^9, 3.575772540815824*^9, 3.575772639276843*^9, 
   3.575860265856962*^9, 3.576214804554736*^9, {3.576214844330736*^9, 
   3.5762148691007357`*^9}, 3.5762154634584923`*^9, {3.5762155718413296`*^9, 
   3.5762155788310285`*^9}, 3.5762159259717393`*^9, 3.576216006539795*^9, 
   3.5762160625393944`*^9, 3.5762161622727385`*^9, 3.5762168792370653`*^9, 
   3.576216964907632*^9, 3.5762170205371943`*^9, 3.5762171409962387`*^9, {
   3.5762172023823767`*^9, 3.576217230409179*^9}, 3.5762412328973775`*^9, 
   3.5762413099525213`*^9, {3.5762413811784916`*^9, 3.5762414032993307`*^9}, 
   3.5762414788970633`*^9, 3.5762415566476*^9, 3.576921315866641*^9, 
   3.577611867799635*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.4`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.4`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153914140625*^9, 
   3.53315400978125*^9, 3.533273392064433*^9, 3.53872295277575*^9, 
   3.538977592521036*^9, 3.5547156212021084`*^9, 3.5719772230417376`*^9, 
   3.575649101170291*^9, 3.5756518565216455`*^9, 3.5757161663959656`*^9, 
   3.5757162206843133`*^9, 3.575726611452907*^9, 3.5757721875637255`*^9, 
   3.57577240774759*^9, 3.575772540815824*^9, 3.575772639276843*^9, 
   3.575860265856962*^9, 3.576214804554736*^9, {3.576214844330736*^9, 
   3.5762148691007357`*^9}, 3.5762154634584923`*^9, {3.5762155718413296`*^9, 
   3.5762155788310285`*^9}, 3.5762159259717393`*^9, 3.576216006539795*^9, 
   3.5762160625393944`*^9, 3.5762161622727385`*^9, 3.5762168792370653`*^9, 
   3.576216964907632*^9, 3.5762170205371943`*^9, 3.5762171409962387`*^9, {
   3.5762172023823767`*^9, 3.576217230409179*^9}, 3.5762412328973775`*^9, 
   3.5762413099525213`*^9, {3.5762413811784916`*^9, 3.5762414032993307`*^9}, 
   3.5762414788970633`*^9, 3.5762415566476*^9, 3.576921315866641*^9, 
   3.577611867800635*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153914140625*^9, 
   3.53315400978125*^9, 3.533273392064433*^9, 3.53872295277575*^9, 
   3.538977592521036*^9, 3.5547156212021084`*^9, 3.5719772230417376`*^9, 
   3.575649101170291*^9, 3.5756518565216455`*^9, 3.5757161663959656`*^9, 
   3.5757162206843133`*^9, 3.575726611452907*^9, 3.5757721875637255`*^9, 
   3.57577240774759*^9, 3.575772540815824*^9, 3.575772639276843*^9, 
   3.575860265856962*^9, 3.576214804554736*^9, {3.576214844330736*^9, 
   3.5762148691007357`*^9}, 3.5762154634584923`*^9, {3.5762155718413296`*^9, 
   3.5762155788310285`*^9}, 3.5762159259717393`*^9, 3.576216006539795*^9, 
   3.5762160625393944`*^9, 3.5762161622727385`*^9, 3.5762168792370653`*^9, 
   3.576216964907632*^9, 3.5762170205371943`*^9, 3.5762171409962387`*^9, {
   3.5762172023823767`*^9, 3.576217230409179*^9}, 3.5762412328973775`*^9, 
   3.5762413099525213`*^9, {3.5762413811784916`*^9, 3.5762414032993307`*^9}, 
   3.5762414788970633`*^9, 3.5762415566476*^9, 3.576921315866641*^9, 
   3.577611867801635*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153914140625*^9, 
   3.53315400978125*^9, 3.533273392064433*^9, 3.53872295277575*^9, 
   3.538977592521036*^9, 3.5547156212021084`*^9, 3.5719772230417376`*^9, 
   3.575649101170291*^9, 3.5756518565216455`*^9, 3.5757161663959656`*^9, 
   3.5757162206843133`*^9, 3.575726611452907*^9, 3.5757721875637255`*^9, 
   3.57577240774759*^9, 3.575772540815824*^9, 3.575772639276843*^9, 
   3.575860265856962*^9, 3.576214804554736*^9, {3.576214844330736*^9, 
   3.5762148691007357`*^9}, 3.5762154634584923`*^9, {3.5762155718413296`*^9, 
   3.5762155788310285`*^9}, 3.5762159259717393`*^9, 3.576216006539795*^9, 
   3.5762160625393944`*^9, 3.5762161622727385`*^9, 3.5762168792370653`*^9, 
   3.576216964907632*^9, 3.5762170205371943`*^9, 3.5762171409962387`*^9, {
   3.5762172023823767`*^9, 3.576217230409179*^9}, 3.5762412328973775`*^9, 
   3.5762413099525213`*^9, {3.5762413811784916`*^9, 3.5762414032993307`*^9}, 
   3.5762414788970633`*^9, 3.5762415566476*^9, 3.576921315866641*^9, 
   3.577611867802635*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.6000000000000001`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.6000000000000001`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153914140625*^9, 
   3.53315400978125*^9, 3.533273392064433*^9, 3.53872295277575*^9, 
   3.538977592521036*^9, 3.5547156212021084`*^9, 3.5719772230417376`*^9, 
   3.575649101170291*^9, 3.5756518565216455`*^9, 3.5757161663959656`*^9, 
   3.5757162206843133`*^9, 3.575726611452907*^9, 3.5757721875637255`*^9, 
   3.57577240774759*^9, 3.575772540815824*^9, 3.575772639276843*^9, 
   3.575860265856962*^9, 3.576214804554736*^9, {3.576214844330736*^9, 
   3.5762148691007357`*^9}, 3.5762154634584923`*^9, {3.5762155718413296`*^9, 
   3.5762155788310285`*^9}, 3.5762159259717393`*^9, 3.576216006539795*^9, 
   3.5762160625393944`*^9, 3.5762161622727385`*^9, 3.5762168792370653`*^9, 
   3.576216964907632*^9, 3.5762170205371943`*^9, 3.5762171409962387`*^9, {
   3.5762172023823767`*^9, 3.576217230409179*^9}, 3.5762412328973775`*^9, 
   3.5762413099525213`*^9, {3.5762413811784916`*^9, 3.5762414032993307`*^9}, 
   3.5762414788970633`*^9, 3.5762415566476*^9, 3.576921315866641*^9, 
   3.577611867803635*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153914140625*^9, 
   3.53315400978125*^9, 3.533273392064433*^9, 3.53872295277575*^9, 
   3.538977592521036*^9, 3.5547156212021084`*^9, 3.5719772230417376`*^9, 
   3.575649101170291*^9, 3.5756518565216455`*^9, 3.5757161663959656`*^9, 
   3.5757162206843133`*^9, 3.575726611452907*^9, 3.5757721875637255`*^9, 
   3.57577240774759*^9, 3.575772540815824*^9, 3.575772639276843*^9, 
   3.575860265856962*^9, 3.576214804554736*^9, {3.576214844330736*^9, 
   3.5762148691007357`*^9}, 3.5762154634584923`*^9, {3.5762155718413296`*^9, 
   3.5762155788310285`*^9}, 3.5762159259717393`*^9, 3.576216006539795*^9, 
   3.5762160625393944`*^9, 3.5762161622727385`*^9, 3.5762168792370653`*^9, 
   3.576216964907632*^9, 3.5762170205371943`*^9, 3.5762171409962387`*^9, {
   3.5762172023823767`*^9, 3.576217230409179*^9}, 3.5762412328973775`*^9, 
   3.5762413099525213`*^9, {3.5762413811784916`*^9, 3.5762414032993307`*^9}, 
   3.5762414788970633`*^9, 3.5762415566476*^9, 3.576921315866641*^9, 
   3.577611867804635*^9}],

Cell[BoxData["\<\"HydraulicValve43.xml\"\>"], "Output",
 CellChangeTimes->{
  3.533153914171875*^9, 3.5331540098125*^9, 3.533273392080057*^9, 
   3.538722952791375*^9, 3.538977592552286*^9, 3.5547156212177286`*^9, 
   3.571977223088539*^9, 3.575649101187292*^9, 3.5756518565456467`*^9, 
   3.5757161663959656`*^9, 3.5757162206999135`*^9, 3.5757266114685073`*^9, 
   3.5757721875793257`*^9, 3.5757724077631903`*^9, 3.5757725408314238`*^9, 
   3.5757726392924433`*^9, 3.5758602658725543`*^9, 3.576214804562736*^9, {
   3.576214844355736*^9, 3.576214869114736*^9}, 3.5762154634714937`*^9, {
   3.5762155718513308`*^9, 3.57621557884403*^9}, 3.576215926001742*^9, 
   3.5762160065647974`*^9, 3.5762160625543957`*^9, 3.5762161622987385`*^9, 
   3.5762168792740693`*^9, 3.576216964950636*^9, 3.5762170205711975`*^9, 
   3.5762171410342426`*^9, {3.57621720241938*^9, 3.576217230429181*^9}, 
   3.5762412329129777`*^9, 3.576241309968121*^9, {3.5762413811784916`*^9, 
   3.576241403314931*^9}, 3.5762414789126635`*^9, 3.5762415566632*^9, 
   3.5769213158766413`*^9, 3.577611867804635*^9}]
}, Open  ]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell["Valve43LS, 4-3 directional valve", "Section",
 PageWidth->WindowWidth,
 CellChangeTimes->{{3.52818909584375*^9, 3.528189095984375*^9}}],

Cell[CellGroupData[{

Cell["Component description", "Subsection",
 PageWidth->WindowWidth],

Cell["\<\
This subroutine simulates the flow trough a 4-3 directional valve.\
\>", "Text",
 PageWidth->WindowWidth],

Cell[CellGroupData[{

Cell[GraphicsData["Metafile", "\<\
CF5dJ6E]HGAYHf4PEfU^I6mgLb15CDHPAVmbKF5d0@0001EL0@0006@000030000000007d0001L0000
00000000002f4`00V`h00215CDH00040G1D007l000080000000000000000000080<005P200100@00
l000000000000000000004H000081`00nPH004M4BD<1002000<004CA^:l00000hPH000402@000g43
000901`0000001@0000V1Pl07P3ooooo100D0000EfmbI0h0CFUSLVmcKfId85M_LV@500002`800000
1@0000`2S@2o01`0003k0Q001`000000_080000000000U=iLgAUK@00200000`0RP4000X0302:0@`0
RP4000X0100002d1000500000P41000070000?/2lol00000002@0@000004@00BE6U]IG<PCVEg859_
KF5^0:j7kGO@Inmg7@X:30002P040000;@4100D000090P00000300007P0700005PB=0;l000000100
000V1Pl05P3ooooo003ooooooooool40002>00000`0001h01@0002h1000000D0000:0P0000050000
2@8000001@000042oooo00L0003l0P4000000000100002d10P080000nP85004000000000100002d1
0`0400000`4800L0000B18d0S@2o0<001@0000/2?02400D0000<0VX0T0050000309Z09001@0000@1
3@0000D0000^0AP0000500000P4100001@0000T2000000D000010_ooo`0300007P040000;@4200P0
003j0PH00@00000000040000;@4400D0000;0S`0Q00700006`B30<h0G`2Z00L0000K18<0l@1O0<d0
1`0001/4P`0D0El0l0050000509O0;@01@0001<2PP2d00D0000D0Ul0``0500004`:20<<01@0001@2
G`3F00D0000C0Ul0eP050000509P0=L01@0001<2I03G00D0000D0Ul0iP0500004`9T0>H01@0001@2
O@3G00D0000C0X80e`050000509m0>H01@0001<2PP3V00D0000D0Ul0nP0500004`:200T11@0001@2
PP3j00D0000C0Ul02@450000509m0=@01@0001<2O@3J00D0000D0Wd0h`0500004`9m0>T01@0001@2
I03E00D0000C0V@0f@050000509T0>@01@0001<2I03Y00L0003l0P0000000000100002d11@0<0000
90<40;@0P@2a07X0]`1j0;@0P@0<000090<40<<0H03006L0aP1W0<<0H00>000090<500T1PP030G/0
2@5i00X1PP090H803P0002@31@090El00`5V00T1J00:0El02@5O00D0000D0W40Q`0500004`9a0:X0
300002@3102Y0740XP1d0:80KP2Y074070000?/2m?l00000002@0@000004000@E6U]IG<0001>2PYU
YHO]Mjj7kGO@InmgCPX:I@002P040000;@4600L0000Q1@80F5I^08X01`0002450P1>D4`0_P0;0000
9PH?00`0ooooo`00000000001@0001@2PP3H00D0000C0Z<0f00<000090<40=P0P`3K08h0f02>0=P0
P`070000o0800?ooo`0000@0000]0@L0300002@3103H0:@0e02H0=P0V03H0:@02`0002H63`0<0?oo
ool10000000000/0000V1Pl0303ooooo000000000005000050:30>L01@0001<2Y03W00@0000]0@D0
300002@3103W08@0jP2?0>L0S`3W08@0100002d11`0<000090<40>L0Y@3S09T0i`2I0>L0Y@0;0000
9PH?00`0ooooo`40000000002`0002H63`0<0?ooool00000000000D0000D0Sd0eP0500004`9N0=H0
100002d11@0<000090<40=H0G@3C0580eP1B0=H0G@040000;@4700`0000T0`@0eP0l0=X0B03F04P0
eP0l00/0000V1Pl0303ooooo0@000000000;00009PH?00`0ooooo`00000000001@0001@2?@3V00D0
000C0Uh0iP040000;@4500`0000T0`@0iP1M0><0DP3V0580iP1M00@0000]0@L0300002@3103V03`0
jP180>H0B03V03`02`0002H63`0<0?ooool10000000000L0000Q1@80CUA<0?801`0002450P1>@IL0
_P0700008@D204i2U`3b00@0000W0Ooo10000?011@070000o0800?ooo`0000@0000]0@D020000?X2
00000000000000@0000]0@P0100002L1ool800009PH?00H0ooooo`40100002L1ool500000P410000
100002d10003000000000140000<0000200000/0000@0000OP0005d000090000400007h0001M0000
2P00010000000000000000T0000@0000_`0008d0001B0000C0400040000@00001`00000000000000
_080000000000002D`1i07<0M01U06d0000000000000000000000000000000000000000000000000
000000000000000000000000002PmA80_iE:00X60@0<000000000=Si3P@<0000:>Um00X60@0<d?Mg
ooooodSd4P000000F?@B00004`0Il_Qg1P000>064`0001<0R2TE033d4P0009H1F?DB0=@/nGMPf?Ug
oooooace4P1DAoIgh0HC05P:8BJ<m180000Q9/1J6`090000]mC]Ma0000000000F0XQ9P008@30m180
fLO]MeP:8BIH2R4V0@0003h=5P2dINeg6_DB0000000000000000000000000000000000410@410@41
0@7]MbD0000<00000@000180000<00000@000580001<0@000P000??oool0000000000000002@0@00
000000A0019D06T0K@1U07<0801>06D0M`0P0580K`1]0640KP000000000000000000000000000000
0000000000000000000:0:3e4P2oUDX02PH100`000000000f?T>10`0000XjGd02PH100c@mgOooooo
B?@B0000001Hm180000C01Wbn7L60000h0HC00004`28:AD0<?@B0000UP5HmA80e2ciMf3HnGOooooo
7?DB05A7mWOP1Q<0F0XQ9Xcd4P00024VY?@B02D00030FQ/0F0XQ9[;4kGL<0000b?@B01800030FQ/0
F0XQ9UP:8BH10000R0dF0000000SmA80000000000000000000000000000000000@410@410@410Neg
9@0000`000020000600000`0000000008@0000P0000N00006000000000000000_`0008d0000Q0000
200001H0000<0000000001P0000<0000000001T0000<0000oooo02D0000<00001@00P2D0000<0000
2000P1l0000H0000`0000;l0002=0000S@0000X0000@0000Q00003`00009000040000900001Z0000
2@000100002@0000JP0001@0000<00003@0001H0000<000060000180000<00000@0001P0000<0000
000001T0000<0000oooo0240000800009@0000`0000500209P0001`0000300001P00004000000000
000002D0000<00000`0000X0000@0000Q00003`0000[000060000:X0001O0000c@000880000[0000
60000<d0001O0000l0000880000[000060000?00001O00004`400880000K000040000;@0001O0000
=P000100002d0000PP0001/0000@0000``0005l0000f000040000<<0002200006`000100003F0000
G`0003H0000@0000eP0005l0000K000040000=L0001P0000=P000100003G0000I00001/0000@0000
iP0005l0000f000040000>H0001T00006`000100003G0000O@0003H0000@0000e`000880000K0000
40000>H0001m0000=P000100003V0000PP0001/0000@0000nP0005l0000f0000400000T100220000
6`000100003j0000PP0003H0000@00002@4005l0000K000040000=@0001m0000=P000100003J0000
O@0001/0000@0000h`0007d0000f000040000>T0001m00006`000100003E0000I00003H0000@0000
f@0006@0000K000040000>@0001T0000=P000100003Y0000I00002L0000H00001000000000000000
000002D0000<0000100005H0000/00009`0003H0000]0000?@0000@0002d0840/@1j0;L0NP2d0840
EP0002`0000e0000800003X0000V000010000<<0H03006L0aP1W0<<0H01F0000<00006l0000f0000
M@0003d0000500002@6200<1N`090GT02P6200T1PP1F0000<00006l0000O0000M@0002L000050000
2@5O00<1IP090FP02P5O00T1G`0K0000400008L0001a0000=P000100002Z0000L@0005H0000/0000
6P0002`0000P0000<@0000@0002Y0740XP1d0:80KP2Y0740DP0004`100050000m?ooo`0000000000
0000090100000000100045@0J@1]06D0L`0000000000000000000000000000000000000000000000
00000000000000000000000000000?eo0>3mO`00000000000000000000000000300013<7000c1`C?
000400C?0004c`00IQ[]Mc<71<m<m180`5XK063d4P000000[O;hM`004`3Pc1@0000003cd4P30FQ/0
_?@B0=@/nGM`f?UgooooohSd4P3LCOIg/0HC00005004000000000;P@5P2Pm180Rkk]M`D0003<m180
<B[`M`004`000000F0XQ9P40003@41H0^10F01We4P00000000000000000000000000000000010@41
0@410@41kGLU0000300000D0001D0000F00000D0000Q00004`0002h000010000000<@Y]P34::0000
KP000080001<00000000000000000000oooooooooom@0000F01F00T000080000E00005P0000c0000
0`000440000@00000@00000034:KH0a2_P0004`000020000C00000000000000000000?oooooooooo
D00004h0D0090000200001/0000@0000f0000880000f000040000=P0002S0000EP0002`0001:0000
?P0004`00018000010000=P0P`3K08h0f02>0=P0P`0W0000600000H000000000oooo0000000U0000
300000H0001F0000;00004H0001A0000BP0005/000040000f02T0=@0V03H09P0f02T01/0000@0000
i`0008<0000f000040000>L0002T00009@0000`000040000EP0002`0001G0000?`0005T000190000
10000>L0Q03Z08l0i`2?0>L0Q00U0000300000H0001F0000;00005<0001B0000E`0005`000040000
i`2U0><0V@3W09T0i`2U01/0000@0000eP0003d0000f000040000=H0001N00009@0000`000040000
EP0002`0001500004`0004P0000M000010000=H0G@3C0580eP1B0=H0G@0U0000300000H0001F0000
;00004P000000000B`0000/000040000eP0l0=X0B03F04P0eP0l01/0000@0000iP0003d0000f0000
40000>H0001N00009@0000`000040000EP0002`0001C00004`0005H0000M000010000>H0G@3S0580
iP1B0>H0G@0U0000300000H0001F0000;00005H000000000F@0000/000040000iP0l0>X0B03V04P0
iP0l05@0001H0000H00000<0001_000040000040000000a2Vf0<@_80001<00000P0004`000000000
00000000003ooooooooooe00001>05@02@0000T0001D0000F00003<000150000@P00058000010000
000<@Y]P34:n0000U`000080001<00000000000000000000oooooooooom@0000CP1100T000090000
E00005P0001P0000A@0006h0001B00000@00000034:KH0a2lP0009L000020000C000000000000000
00000?ooooooooooD00004h0@P09000020000280000<0000ooooobP0000<0000100002L0000H0000
10000000003oool0000002D0000<0000100002H0000L00001`0000000000000000000000000U0000
300000L0000R000030000?oooolR000030000?oooolB000030000040000U000030000040000U0000
300000L0080U000030000000080`0000300000l0080U0000300000d0081;00004000000000050000
:00000`000010000:00000`000020000:00000`000030000:00000`000040000:00000`000050000
:00000`000060000:00000`0000700003P0001@000000000400001@0
\>"], "Graphics",
 ImageSize->{122, 92},
 ImageMargins->{{0, 0}, {0, 0}},
 ImageRegion->{{0, 1}, {0, 1}}],

Cell[GraphicsData["Metafile", "\<\
CF5dJ6E]HGAYHf4PEfU^I6mgLb15CDHPAVmbKF5d0@0002;40@0006@0000000000@0003D1002S0000
000000000024<000;aX00215CDH00040a2800<X000080000000000000000000080<005P200100@00
l000000000000000000004H000083000o0/004M4BD<1002000<006_mKDD00000i0/000402@000o85
000902d0000001@0000V1Pl07P3ooooo100D0000EfmbI0h0CFUSLVmcKfId85M_LV@500002`800000
1@0000`2o@3E0A`0003k0Q001`000000_080000000000U=iLgAUK@00200000`0RP4000X0302:0@`0
RP4000X0100002d1000500000P41000070000?/2lol00000002@0@000004@00BE6U]IG<PCVEg859_
KF5^0:j7kGO@Inmg7@X:30002P040000;@4100D000090P00000300007P0700005PCm0=D100000100
000V1Pl05P3ooooo003oooooooooomP1003n00000`0001h01@0002h1000000D0000:0P0000050000
2@8000001@000042oooo00L0003l0P4000000000100002d10P080000nP85004000000000100002d1
0`0400000`4800L0000B1?d0o@3E0ML11@0000/2`P1@00D0000<0[h0H@45000030:n06411@0000@1
3@0000D0000^0AP0000500000P4100001@0000T2000000D000010_ooo`0300007P0;00009PH?00`0
ooooo`000000000020000?X21P010000000000@0000]0@@01@0000/2`P1@00D0000D0SH1b0050000
4`8f0@P11@0001@2=P490@D0000C0TD12@45000050950@T11@0001<2A@5:0@D0000D0TD1BP450000
4`8f0DX11@0001@2=P5:0@D0000C0SH1H`450000508C0F<11@0001<2=@5S0@D0000D0Q<1BP450000
4`8C0F<11@0001@24`5:0@D0000C0P@1BP45000050840@T11@0001<2105:0@D0000D0P@12@450000
4`8C0@T11@0001@24`7800D0000C0Q<12@450000508C0LP01@0001<2107800D0000D0P@1Q`050000
4`840LP01@0001@2106700D0000C0Q<1Q`050000508C0G<01@0001<24`6700D0000D0Q<1L`050000
4`8f0G<01@0001@2=P5c00D0000C0SH1Q`05000050950HL01@0001<2=P6700D0000D0TD1Q`050000
4`950LP01@0001@2=P7800D0000C0TD1b00;00009PH?00`0ooooo`40000000002`0002H63`0<0?oo
ool00000000000L0003l0P00oooo0000100002d11@0700006`@]0H`17@5@02d000120@D0000X0000
200000P0000100400000020000000000000000000000000000000?ooo`2Z0000E@000:X0001E0000
ZP0005D0002Z0000E@0000@0000]0@H0100002d10`0>000090<505409`6;0BL1R`4Z0E40:P5A02L1
;@0004811@0002P000080000200000400@00000080000000000000000000000000000000oooo0?l0
003M0000o`0007L0003o0000g@000?l0001g0000100002d11`040000l04600h0000T0`D0D@0P0H/1
806;0B@1D@0T0E4080440000;@4500@0003`0@L0100002d1100700006`@g0L@04`6<00L0000K13L1
AP4C0@h1;@0004811@0002P000080000200000400@00000080000000000000000000000000000000
oooo0:X0001E0000ZP0005D0002Z0000E@000:X0001E0000100002d11P040000;@4300h0000T0`D0
S@0[0L<0:`730341S@0a0Hd0:`4]0000@P450000:00000P0000800000@010000000P000000000000
0000000000000000003oool0ZP0005D0002Z0000E@000:X0001E0000ZP0005D000040000;@4700@0
003`0@H03P0002@31@0?0B/1A@4[0DD1<@4?0C413`4[0Bd000120@D0000X0000200000P000010040
0000020000000000000000000000000000000?ooo`3o0000g@000?l0001g0000o`000=d0003o0000
M`0000@0000]0@H010000?011`0>000090<508d0607301P1``0R0Hd08P6=01P1;@0004811@0002P0
00080000200000400@00000080000000000000000000000000000000oooo0?l0003M0000o`0007L0
003o0000g@000?l0001g0000100002d11`040000l04600h0000T0`D03`4H0DD160550B813`4R0@l1
60440000;@4400D0000D0S@1S@0500004`8d0L<01@0001@2=04>0@D0000C0S@1A@4;00009PH?00`0
ooooo`40000000001@0001@2<P7300D0000C0Uh1``050000508h0LP01@0001<2GP7800P0003j0PH0
0P00000000040000;@4600D0000D0^`0N@0500004`8B0GT01@0001@2k01U00D0000C0^`0i@050000
50;/05l11@0001<24`5O0@D0000D0/T0j@0500004`8C0NT01@0001@2k03]00D0000C0^`0GP450000
50960JP01@0001<2N06X00D0000D0TH1:P4500004`9h0BX1100002d110040000l04600D0000D0UT1
]@0500004`9I0N801`000?`20000000000040000;@4600@0003`0@L0300002@3103105T1^P1L0KX0
EP7105T1300002@3103905T1d01L0M00EP7905T11@0001@2<P550@D0000C0Uh1A@450000508h0DX1
1@0001<2GP5:0@D0000D0UT1=`4500004`9I0F@1300002@310130ET1?05L0C`1EP530ET1300002@3
101;0ET1DP5L0E81EP5;0ET12`0002H63`0<0?ooool00000000000D0000D0Uh13P4500004`8b0@h1
1@0001@2GP490@D0000C0SP12@450000509I0Nl01@0001<2F@4L0@`0000T0`@0405I0AL1G04G0EH1
405I0@`0000T0`@0205I0@41G0410EH1205I0@/0000V1Pl0303ooooo0@000000000;00009PH?00`0
ooooo`00000000001@0001@2GP6<00D0000C0S81S0050000509N0HL01@0001<2>06700D0000D0UT1
K@0500004`9I0IX0300002@3102>05T1U@1L0ID0EP6>05T1300002@3102605T1O`1L0Gl0EP6605T1
2`0002H63`0<0?ooool10000000001`0003k0_Co00000000T0400000100045AYKFEc0000H@X::ZF7
kGN^Qnegd6O_Mf4:2RX000X0100002d11`0700008@D204i1N06/00L0000Q1@80CT9h0AD11`000245
0P1>D=00l00700008@D204iDi`1J00L0000H1>l0O03Y07H020000245101H@E@`E@5N00P0000Q1@@0
F45@<5D1dP0800008@D405Q2E31E0EL120000245101H@U0`IP7R00D0000D0RD1R`4500004`8U0Jh1
300002@3102;0BD1TP4X0I818P6;0BD11`0002450P1HER41V`4400009`7oo`@0003`0@D01`000?`2
003oool000040000;@4500P0003j0P000000000000040000;@4800@0000W0Ooo200002H63`060?oo
ool100@0000W0Ooo1@0000810@0000@0000]0@000`0000004@0000`0000800002`000100000g0@00
Z00000T0000@0000=`400:P0000:000040000000000000002@000100003E0@00o@000580001<0@00
0@0001000007000000000000002l0P0000000000009C07T0L`1d06D0K@0000000000000000000000
00000000000000000000000000000000000000000000000000000:3e4P2oUDX02PH100`000000000
f42O0``0000XjGd02PH100c@mgOoooooB?@B0000001Hm180000C01Wbn7L60000h0HC00004`28:AD0
<?@B0000UP5HmA80e2ciMf3HnGOooooo7?DB05A7mWOP1Q<0HPXQ78cd4P00024L`5XK00T0002ge>eg
40000000001R2R4L000Q0<3d4P3IanegHPXQ768:8A`10000gY/F0;AUkGLJmA800000000000000000
00000000000000000@410@410@410Neg9@0000`0000100004P0000`000010000DP0004`100020000
loooo`0000000000000009010000000014004U@0J@1]06D0L`0P04h0I@1g0200DP1_06d0H@1^0000
0000000000000000000000000000000000000000000000X0X?DB0;nEBP0:1P4030000000003H@9l3
300002SYO@0:1P403=3gMooooom8m180000005Sd4P0001<06O;hM`H0003P1Q<0000C08PY5@0`m180
002F0ESe4P3D;?UgH=SiMooooolLmA80E4OfMn064`1R2R4LS?@B00008AbTm1809@000<1J6`1R2R4L
//C]M``00038m1804P000<1J6`1R2R4LHPXQ7040000XW1H0000002?e4P0000000000000000000000
0000000000010@410@410@41kGLU000030000080000H000030000000000Q0000200001h0000H0000
00000000003E0@00o@000240000800005P0000`000000000600000`0000000006@0000`0003oool0
9@0000`0000500209@0000`0000800207`0001P0003G0@00e@400?d0003m00002P000100001@0000
`P0000T0000@0000H@400;h00009000040000641002n0000500000`0000=00005P0000`0000H0000
4P0000`000010000600000`0000000006@0000`0003oool08@0000P0000V0000700000<000060000
0@000000000000009@0000`0000300002P000100001@0000`P0001/0000@0000b00003H1000f0000
400000P1000f0@006`00010000090@00=P4003H0000@00002@4004D1000K0000400000T100150@00
=P000100001:0@00A@4001/0000@0000BP4004D1000f0000400004X1000f0@006`000100001:0@00
=P4003H0000@0000H`4003H1000K0000400006<1000C0@00=P000100001S0@00=@4001/0000@0000
BP4001<1000f0000400006<1000C0@006`000100001:0@004`4003H0000@0000BP4000@1000K0000
400000T100040@00=P000100001:0@00104001/0000@00002@4000@1000f0000400000T1000C0@00
6`000100003800004`4003H0000@00002@4001<1000K000040000<P0000C0@00=P00010000380000
104001/0000@0000Q`0000@1000f000040000<P000040@006`00010000270000104003H0000@0000
Q`0001<1000K0000400007<0000C0@00=P000100002700004`4001/0000@0000L`0001<1000f0000
400007<0000f0@006`000100001c0000=P4003H0000@0000Q`0003H1000K0000400008L000150@00
=P00010000270000=P4001/0000@0000Q`0004D1000f000040000<P000150@006`00010000380000
=P4003H0000@0000b00004D1000W0000600000@000000000oooo0000000U0000300000@0000[0000
60000500000M0@00R`4002`1001N0000L00000D00000000080000300001@0000800002P000080000
200000400@00000080000000000000000000000000000000oooo0:X0001E0000ZP0005D0002Z0000
E@000:X0001E00009@0000`0000500009@0000`000080020EP00030000010000F@0001H1001L0000
1@0005409`6;0BL1R`4Z0E40:P5A02L1GP0007000006000000000200000`0000D0000200000X0000
200000P0000100400000020000000000000000000000000000000?ooo`3o0000g@000?l0001g0000
o`000=d0003o0000M`0002D0000<00001P0002P0000<00001@0005H0000`00000@0005<0000F0@00
E`0000D0001A0201R`4P0H/1905A02@1D@0P0BD0000<0000100002P0000<00001P0002D0000<0000
0`0002/0000H0000S00001<100330000=P4002/0000H00003P4001<100150@00=P4005h0001`0000
1P000000000P0000<0000500000P0000:00000P0000800000@010000000P00000000000000000000
00000000003oool0ZP0005D0002Z0000E@000:X0001E0000ZP0005D0000U0000300000H0000U0000
300000P0081F0000<00003H0001M0000IP00068000050000S@0[0L<0:`730341S@0a0Hd0:`5N0000
L00000D00000000080000300001@0000800002P000080000200000400@0000008000000000000000
0000000000000000oooo0:X0001E0000ZP0005D0002Z0000E@000:X0001E00009@0000`000050000
:00000`000060000EP000300002Y0000G@000=T0001R00001@0000l1:`550B/1A@4a0@l1<@4?0B/1
GP0007000006000000000200000`0000D0000200000X0000200000P0000100400000020000000000
000000000000000000000?ooo`3o0000g@000?l0001g0000o`000=d0003o0000M`0002D0000<0000
1P0002P0000<00001@0005H0000`0000=P0004`0001V0000E@0000D0002=01P1``0H0L<08P6=0281
S@0H0Eh0001`00001@000000000P0000<0000500000P0000:00000P0000800000@010000000P0000
000000000000000000000000003oool0o`000=d0003o0000M`000?l0003M0000o`0007L0000U0000
300000D0000X0000300000H0001F0000<0000:T0001<0000f@0005D0000500003`4H0DD160550B81
3`4R0@l1604U0000300000<0000K0000400008d0000d0@00=P00010000330000=04001/0000@0000
3P4003@1000f0000400004D1000d0@006`00010000330000<P4003H0000@0000``0005h1000K0000
40000<P0000h0@00=P00010000380000GP4002H0000L00001P0000H00002000000000000000U0000
300000H0000K0000400007T0003/0000=P000100001i00004P4001/0000@0000I@000>`0000f0000
40000>D0003/00006`000100001O0@00k00003H0000@0000G`4001<1000K000040000>T000390000
=P000100003Y00004`4001/0000@0000k@000>`0000f0000400005h1003/00006`000100002X0000
AP4003H0000@0000Z00007P1000K0000400002X100160@00=P000100000Z0@00N04002D0000<0000
0`0002P0000<00001P0001/0000@0000]@0005T1000f000040000>80001I0@009`0001P000060000
00000000000000009@0000`000060000:00000`000050000EP0002`0001N0000P`0006@000280000
10000<40F@6j05`1^P1F0L40F@5F0000;00006/000230000L@0008P000040000b@1I0M00G07@05H1
b@1I0A/0000@0000A@400381000f0000400004D1001N0@006`000100001:0@00>04003H0000@0000
BP4005h1000K0000400003L1001I0@00=P000100001T0@00F@4005H0000/0000d@0008<0003G0000
R00000@000130ET1?05L0C`1EP530ET1EP0002`0003N0000P`000>@000280000100004/1F@5B0E`1
DP5F0D/1F@4K0000400000h1001N0@00=P000100000>0@00<P4001/0000@00002@4005h1000f0000
400000T1000h0@006`000100003_0000F@4003H0000@0000704005T1001F0000;0000:X000230000
/00008P000040000405I0AL1G04G0EH1405I0EH0000/0000W00008<0002S0000R00000@000080ET1
0@5L0@41EP480ET16`000100002<0000GP4003H0000@0000S0000381000K0000400008L0001N0@00
=P00010000270000>04001/0000@0000K@0005T1000f0000400009X0001I0@00EP0002`0000g0000
P`0003d000280000100008h0F@6E05`1U@1F0Hh0F@5F0000;00002X000230000<00008P000040000
QP1I0Gl0G05o05H1QP1I0E80001<0@001@000?Coool0000000000000002@0@00000000@0011D06T0
K@1U07<0000000000000000000000000000000000000000000000000000000000000000000000000
003iMooooolLm180g4gfMh064`0PCaD084lE0000001[2Q03<`L42`0010040000H?@B034Zl7L001<0
0000021?5@1Pm18000000:gbn7L001<0h<`D0000000lm1800H000;cd4P3D;?UgL=SiMooooon8m180
g4gfMk064`0001@010000000003@YAH0X?@B08^nkGL50000c?@B034Zl7L001<00000068:8A`10000
oZDF0=2U5P0ImA80000000000000000000000000000000000@410@410@410Neg9@0000`000050000
E00005P0001A0000UP000600002S00000@0009aZ3D93N@e2[00007P100020000C000000000000000
00000?ooooooooooD00004h0@@0900002@0005@0001H0000[P0009H0002l0000X`000040002LJPe2
@gT=@QD1001h0@000P0004`00000000000000000003ooooooooooe00001>04802@0000P0001D0000
F00008d000010000V`0000h000010000W6X=@T=i3D;`0000d0000080001<00000000000000000000
oooooooooom@0000CP1@00T000080000E00005P0000900005P0001P0000S00000@0009aZ3D93N@e2
FP000>L000020000C00000000000000000000?ooooooooooD00004h0E00900002@0002X0000H0000
MP000>T0001k0000kP0005@0001T0000300007L0000Y0000Q0000040002LJPe2@gT=@Uh0001E0@00
100004`00000000000000000003ooooooooooe@0001H0440E00`00T0000900002@0000L0001D0000
I00007<0001g0000S`0008@000010000W6X=@T=i3D;B0000E@4000@0001<00000000000000000000
oooooooooomD0000F0110500<00900002@0000P000070000E00006@0003Y0000M`0000D100240000
0@0009aZ3D93N@e2E`4005D100040000C00000000000000000000?ooooooooooE00005P0@P1D0300
2@0000P0000900001`0005@0001T0000P@0008H0002L0000T`000040002LJPe2@gT=@^80001V0@00
100004`00000000000000000003ooooooooooe@0001H0480D00`00T000080000200000L0000K0000
400008/1000U0@00=P000100002^0@009@4005H0000/00005P4005D0000M0@00FP0000@0002;0BD1
TP4X0I818P6;0BD1E00005P0000U0@00B@0003<1001F00000@0009aZ3D93N@e2V`40024100020000
C00000000000000000000?ooooooooooD00005P0EP09000020000280000<0000ooooobP0000<0000
100002L0000H000010000000003oool0000002D0000<0000100002H0000L00001`00000000000000
00000000000U0000300000L0000R000030000?oooolR000030000?oooolB000030000040000U0000
30000040000U0000300000L0080U000030000000080`0000300000l0080U0000300000d0081;0000
4000000000050000:00000`000010000:00000`000020000:00000`000030000:00000`000040000
:00000`000060000:00000`000050000:00000`0000700003P0001@000000000400001@0
\>"], "Graphics",
 ImageSize->{309, 162},
 ImageMargins->{{0, 0}, {0, 1}}]
}, Open  ]]
}, Open  ]],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<Valve43LS\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{
  "brief", "=", "\"\<A load sensing hydraulic directional valve\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.507887022343302*^9, 
   3.507887057967846*^9}, {3.5078871702320337`*^9, 3.507887175028847*^9}, {
   3.5158208831437864`*^9, 3.51582092036206*^9}, {3.5158209798300486`*^9, 
   3.51582099300181*^9}, {3.522605661421875*^9, 3.522605661625*^9}, {
   3.565433404364499*^9, 3.5654334224825306`*^9}, {3.5695965311236906`*^9, 
   3.569596540324217*^9}, 3.5757721159132*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"p", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Pressure port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"t", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Tank port\>\""}], "]"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"a", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Load port A\>\""}], "]"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"b", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Load port B\>\""}], "]"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"ls", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<LS port\>\""}], "]"}]}], 
    "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.503919051294972*^9, 3.503919119154347*^9}, {
   3.503923736440875*^9, 3.503923751003375*^9}, {3.5039293570625*^9, 
   3.503929406765625*^9}, 3.50394250446875*^9, {3.50399668911909*^9, 
   3.5039966973713074`*^9}, {3.507548807751546*^9, 3.5075488260955305`*^9}, {
   3.515612779640625*^9, 3.515612784234375*^9}, {3.5281892315*^9, 
   3.52818925309375*^9}, 3.5756490609509907`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputVariables", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{"{", 
     RowBox[{
     "xv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
      "\"\<Spool position\>\""}], "}"}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.571994842405704*^9, 3.571994911670148*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "rho", ",", "860.", ",", "double", ",", "\"\<kg/m3\>\"", ",", 
       "\"\<oil density\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Cq", ",", "0.67", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Flow coefficient.\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Sd", ",", ".001", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<spool diameter\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frap", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(P-A)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frat", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(A-T)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frbp", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(P-B)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frbt", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(B-T)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "wls", ",", "0.01", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Area gradient LS-port\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xap0", ",", "0.0003", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Overlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xat0", ",", "0.0003", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Overlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xbp0", ",", "0.0003", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Overlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xbt0", ",", "0.0003", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Overlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xlsa0", ",", "0.0003", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Overlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xlsb0", ",", "0.0003", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Overlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xls0", ",", "0.0003", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Zero opening LS port\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xvmax", ",", "0.01", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Max valve opening\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xvlsmax", ",", "0.001", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Max opening LS port\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "plam", ",", "10000.", ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Turbulence onset pressure\>\""}], "}"}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 PageWidth->WindowWidth,
 CellChangeTimes->{{3.503916073562605*^9, 3.50391608476573*^9}, {
   3.5039161716261826`*^9, 3.503916172813698*^9}, 3.503919167716847*^9, {
   3.505588895375*^9, 3.5055889695*^9}, {3.505589016640625*^9, 
   3.505589034984375*^9}, {3.505589276125*^9, 3.505589277078125*^9}, {
   3.505590362109375*^9, 3.50559036675*^9}, {3.505590803484375*^9, 
   3.50559082509375*^9}, {3.5075449148100324`*^9, 3.507544933372048*^9}, {
   3.5075449813674784`*^9, 3.507545001403344*^9}, {3.507562171421875*^9, 
   3.50756217203125*^9}, {3.5158237803828354`*^9, 3.5158238002578354`*^9}, {
   3.52819029396875*^9, 3.5281904303125*^9}, {3.569596832671938*^9, 
   3.5695968327619433`*^9}, {3.571978306807603*^9, 3.5719783134688883`*^9}, {
   3.5719864066873174`*^9, 3.571986423113763*^9}, {3.571986461692563*^9, 
   3.571986546228963*^9}, {3.571986988412763*^9, 3.571986993155163*^9}, {
   3.571987095936763*^9, 3.571987118151163*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"qpa", " ", "=", " ", 
   RowBox[{"Kspa", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pp", "-", "pa"}], ",", "plam"}], "]"}]}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"qta", " ", "=", " ", 
   RowBox[{"Ksta", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pt", "-", "pa"}], ",", "plam"}], "]"}]}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"qpb", " ", "=", " ", 
   RowBox[{"Kspb", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pp", "-", "pb"}], ",", "plam"}], "]"}]}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"qtb", " ", "=", " ", 
   RowBox[{"Kstb", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pt", "-", "pb"}], ",", "plam"}], "]"}]}]}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"qlsa", " ", "=", " ", 
   RowBox[{"Kslsa", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pls", "-", "pa"}], ",", "plam"}], "]"}]}]}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"qlsb", " ", "=", " ", 
   RowBox[{"Kslsb", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pls", "-", "pb"}], ",", "plam"}], "]"}]}]}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"qlst", " ", "=", " ", 
   RowBox[{"Kslst", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pls", "-", "pt"}], ",", "plam"}], "]"}]}]}], ";"}]}], "Input",
 CellChangeTimes->{
  3.504198984265625*^9, 3.505589001421875*^9, {3.5075513871678333`*^9, 
   3.5075513902618604`*^9}, {3.5158238134609604`*^9, 
   3.5158238195390854`*^9}, {3.528189406765625*^9, 3.5281894573125*^9}, {
   3.528189492765625*^9, 3.52818949975*^9}, {3.5696056737376184`*^9, 
   3.569605691443631*^9}, 3.5696059485853386`*^9}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"Xpa", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{"xv", " ", "-", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "-", " ", "Xap0"}]}], "]"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"Xta", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{
      RowBox[{"-", "xv"}], " ", "-", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "-", " ", "Xat0"}]}], "]"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"Xpb", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{
      RowBox[{"-", "xv"}], " ", "-", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "-", " ", "Xbp0"}]}], "]"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"Xtb", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{"xv", " ", "-", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "-", " ", "Xbt0"}]}], "]"}]}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"Xlsa", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{"xv", " ", "-", " ", "Xlsa0"}], ",", "0.", ",", 
     RowBox[{"Xvlsmax", " ", "-", " ", "Xlsa0"}]}], "]"}]}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"Xlsb", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{
      RowBox[{"-", "xv"}], " ", "-", " ", "Xlsb0"}], ",", "0.", ",", 
     RowBox[{"Xvlsmax", " ", "-", " ", "Xlsb0"}]}], "]"}]}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"Xlst", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{"Xls0", "-", 
      RowBox[{"Abs", "[", "xv", "]"}]}], ",", "0.", ",", "Xls0"}], "]"}]}], 
  ";"}]}], "Input",
 CellChangeTimes->{{3.50558966315625*^9, 3.50558969203125*^9}, {
  3.5055897985*^9, 3.505589808*^9}, {3.507562582*^9, 3.507562588921875*^9}, {
  3.52818973471875*^9, 3.528189747125*^9}, {3.528190104078125*^9, 
  3.52819013678125*^9}, {3.528190218359375*^9, 3.528190242265625*^9}, {
  3.569605518216723*^9, 3.569605551874648*^9}, {3.569605598299303*^9, 
  3.569605611865079*^9}, {3.5719864342365627`*^9, 3.571986436685763*^9}, {
  3.571986566664963*^9, 3.571986594432963*^9}, {3.571987124391163*^9, 
  3.571987145872363*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"wpa", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frap"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"wta", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frat"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"wpb", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frbp"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"wtb", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frbt"}]}], 
  ";"}], "\[IndentingNewLine]"}], "Input",
 CellChangeTimes->{{3.5055896995*^9, 3.505589724359375*^9}, {
   3.52818961478125*^9, 3.52818962775*^9}, {3.5695962884628115`*^9, 
   3.569596322162739*^9}, 3.571985056331151*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"localExpressions", " ", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"Ks", "==", 
      RowBox[{"Cq", "*", 
       FractionBox[
        RowBox[{"N", "[", 
         SqrtBox["2"], "]"}], 
        SqrtBox["rho"]]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Kspa", "==", 
      RowBox[{"Xpa", " ", "wpa", " ", "Ks"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Ksta", "==", 
      RowBox[{"Xta", " ", "wta", " ", "Ks"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Kspb", "==", 
      RowBox[{"Xpb", " ", "wpb", " ", "Ks"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Kstb", "==", 
      RowBox[{"Xtb", " ", "wtb", " ", "Ks"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Kslsa", "==", 
      RowBox[{"Xlsa", " ", "wls", " ", "Ks"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Kslsb", "==", 
      RowBox[{"Xlsb", " ", "wls", " ", "Ks"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Kslst", "==", 
      RowBox[{"Xlst", " ", "wls", " ", "Ks"}]}]}], "\n", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.5055892220625*^9, 3.505589231265625*^9}, 
   3.505589573890625*^9, 3.505813673194783*^9, {3.5058212753418417`*^9, 
   3.5058212802010612`*^9}, {3.5058213722606153`*^9, 3.505821373432453*^9}, {
   3.5075515846230235`*^9, 3.507551585263706*^9}, 3.507551672580868*^9, {
   3.528189655421875*^9, 3.528189725703125*^9}, {3.528189882046875*^9, 
   3.528189914390625*^9}, {3.5696056995500946`*^9, 3.569605729399802*^9}, {
   3.5719026190359697`*^9, 3.5719026838072834`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemEquationsDA", " ", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"qp", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{
        RowBox[{"-", "qpa"}], "-", "qpb"}], ")"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"qt", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{
        RowBox[{"-", "qta"}], "-", "qtb"}], ")"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"qa", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{"qpa", "+", "qta"}], ")"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"qb", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{"qpb", "+", "qtb"}], ")"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"qls", "==", 
      RowBox[{"(", 
       RowBox[{
        RowBox[{"-", "qlsa"}], "-", "qlsb", "-", "qlst"}], ")"}]}]}], 
    "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.50754870493773*^9, 3.507548721672319*^9}, {
   3.528189282484375*^9, 3.528189346515625*^9}, {3.52819026384375*^9, 
   3.52819026821875*^9}, {3.56960565208738*^9, 3.569605654861539*^9}, {
   3.5719026944153023`*^9, 3.5719027013105145`*^9}, 3.571977660680024*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", " ", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"pp", " ", "==", " ", 
      RowBox[{"cpe", " ", "+", " ", 
       RowBox[{"Zcpe", " ", "qp"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"pt", " ", "==", " ", 
      RowBox[{"cte", " ", "+", " ", 
       RowBox[{"Zcte", " ", "qt"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"pa", " ", "==", " ", 
      RowBox[{"cae", " ", "+", " ", 
       RowBox[{"Zcae", " ", "qa"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"pb", " ", "==", " ", 
      RowBox[{"cbe", " ", "+", " ", 
       RowBox[{"Zcbe", " ", "qb"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"pls", " ", "==", " ", 
      RowBox[{"clse", " ", "+", " ", 
       RowBox[{"Zclse", " ", "qls"}]}]}]}], "\n", "      ", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.50559120440625*^9, 3.50559120803125*^9}, {
  3.505591469296875*^9, 3.505591475125*^9}, {3.5075486382337513`*^9, 
  3.5075486907344227`*^9}, {3.51582107740806*^9, 3.5158210786736856`*^9}, {
  3.515900481708085*^9, 3.5159004828643227`*^9}, {3.528190463921875*^9, 
  3.52819050078125*^9}, {3.571900600684826*^9, 3.5719006286244745`*^9}, {
  3.571902595323928*^9, 3.571902603014742*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", " ", "=", " ", 
   RowBox[{"{", 
    RowBox[{
    "qp", ",", "qt", ",", "qa", ",", "qb", ",", "qls", ",", "pp", ",", "pt", 
     ",", "pa", ",", "pb", ",", "pls"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.503916309424025*^9, 3.5039163118146653`*^9}, 
   3.504160933453125*^9, 3.504161512171875*^9, {3.50416161690625*^9, 
   3.504161620484375*^9}, {3.52819027446875*^9, 3.528190282078125*^9}, {
   3.5696059276041384`*^9, 3.5696059362826347`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"VariableLimits", "=."}], ";"}]], "Input",
 CellChangeTimes->{3.50391626568937*^9}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input"],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \\\"HydraulicValve43LS\\\"\\)\\), \
\\(\\(\\\"displayname\\\" \[Rule] \\\"HydraulicValve43LS\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicValve43LS.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicValve43LS.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\
\\(\[LeftSkeleton] 1 \[RightSkeleton]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\(\\(\\\"\\\" \[Ellipsis] \\\"\\\"\\)\\) \[Rule] \
\\(\\(\[LeftSkeleton] 5 \[RightSkeleton]\\)\\)}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\), \\(\\(\\(\\(\\\"d\\\" \[Ellipsis] \\\"me\\\"\\)\\) \
\[Rule] \\(\\(\\\"\\\" \[Ellipsis] \\\"\\\"\\)\\)\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicValve43LS.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicValve43LS.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\
\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.16666666666666666`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"Pp\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.3333333333333333`\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"Pt\\\"\\)\\)}\\)\\), \\(\\({}\
\\)\\)\\)\\)]\\)\\), \\(\\(\[LeftSkeleton] 3 \[RightSkeleton]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \
0.5`\\)\\), \\(\\(\\\"y\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"270\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"xv\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\
\[NoBreak] is not a list of contents. The third item in an XMLElement must be \
a list of contents, even if it is an empty list. \\!\\(\\*ButtonBox[\\\"\
\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153915484375*^9, 
   3.533154010921875*^9, 3.5332733922362957`*^9, 3.538722953260125*^9, 
   3.538977592771036*^9, 3.5547156213583126`*^9, 3.5695963800650506`*^9, {
   3.569596435213205*^9, 3.5695964421306005`*^9}, 3.5695964780156527`*^9, 
   3.569596564807617*^9, 3.5695968418204613`*^9, {3.5696057476718473`*^9, 
   3.5696057579264336`*^9}, 3.5696059591979456`*^9, 3.5719772231977406`*^9, 
   3.5719776841115246`*^9, 3.5719778191624336`*^9, {3.5719865786613626`*^9, 
   3.5719865977713633`*^9}, 3.571987157619163*^9, 3.575649101840329*^9, 
   3.575651856738658*^9, 3.575716166598767*^9, 3.5757162208715143`*^9, 
   3.5757266116401076`*^9, 3.5757721877977257`*^9, 3.575772407950391*^9, 
   3.575772541003024*^9, 3.575772639588844*^9, 3.5758602661064405`*^9, 
   3.5762148047517357`*^9, {3.576214844596736*^9, 3.576214869280736*^9}, 
   3.576215463644511*^9, 3.5762155790180473`*^9, 3.576215926258768*^9, 
   3.576216006828824*^9, 3.5762160628494253`*^9, 3.5762161625487385`*^9, 
   3.5762168795480967`*^9, 3.576216965241665*^9, 3.576217020832224*^9, 
   3.576217141315271*^9, {3.5762172026904078`*^9, 3.576217230672206*^9}, 
   3.576241233100178*^9, 3.576241310139721*^9, {3.576241381396892*^9, 
   3.576241403486531*^9}, 3.5762414790998635`*^9, 3.5762415568192005`*^9, 
   3.576921316283641*^9, 3.5776118680056553`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153915484375*^9, 
   3.533154010921875*^9, 3.5332733922362957`*^9, 3.538722953260125*^9, 
   3.538977592771036*^9, 3.5547156213583126`*^9, 3.5695963800650506`*^9, {
   3.569596435213205*^9, 3.5695964421306005`*^9}, 3.5695964780156527`*^9, 
   3.569596564807617*^9, 3.5695968418204613`*^9, {3.5696057476718473`*^9, 
   3.5696057579264336`*^9}, 3.5696059591979456`*^9, 3.5719772231977406`*^9, 
   3.5719776841115246`*^9, 3.5719778191624336`*^9, {3.5719865786613626`*^9, 
   3.5719865977713633`*^9}, 3.571987157619163*^9, 3.575649101840329*^9, 
   3.575651856738658*^9, 3.575716166598767*^9, 3.5757162208715143`*^9, 
   3.5757266116401076`*^9, 3.5757721877977257`*^9, 3.575772407950391*^9, 
   3.575772541003024*^9, 3.575772639588844*^9, 3.5758602661064405`*^9, 
   3.5762148047517357`*^9, {3.576214844596736*^9, 3.576214869280736*^9}, 
   3.576215463644511*^9, 3.5762155790180473`*^9, 3.576215926258768*^9, 
   3.576216006828824*^9, 3.5762160628494253`*^9, 3.5762161625487385`*^9, 
   3.5762168795480967`*^9, 3.576216965241665*^9, 3.576217020832224*^9, 
   3.576217141315271*^9, {3.5762172026904078`*^9, 3.576217230672206*^9}, 
   3.576241233100178*^9, 3.576241310139721*^9, {3.576241381396892*^9, 
   3.576241403486531*^9}, 3.5762414790998635`*^9, 3.5762415568192005`*^9, 
   3.576921316283641*^9, 3.5776118680066557`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.16666666666666666`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.16666666666666666`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153915484375*^9, 
   3.533154010921875*^9, 3.5332733922362957`*^9, 3.538722953260125*^9, 
   3.538977592771036*^9, 3.5547156213583126`*^9, 3.5695963800650506`*^9, {
   3.569596435213205*^9, 3.5695964421306005`*^9}, 3.5695964780156527`*^9, 
   3.569596564807617*^9, 3.5695968418204613`*^9, {3.5696057476718473`*^9, 
   3.5696057579264336`*^9}, 3.5696059591979456`*^9, 3.5719772231977406`*^9, 
   3.5719776841115246`*^9, 3.5719778191624336`*^9, {3.5719865786613626`*^9, 
   3.5719865977713633`*^9}, 3.571987157619163*^9, 3.575649101840329*^9, 
   3.575651856738658*^9, 3.575716166598767*^9, 3.5757162208715143`*^9, 
   3.5757266116401076`*^9, 3.5757721877977257`*^9, 3.575772407950391*^9, 
   3.575772541003024*^9, 3.575772639588844*^9, 3.5758602661064405`*^9, 
   3.5762148047517357`*^9, {3.576214844596736*^9, 3.576214869280736*^9}, 
   3.576215463644511*^9, 3.5762155790180473`*^9, 3.576215926258768*^9, 
   3.576216006828824*^9, 3.5762160628494253`*^9, 3.5762161625487385`*^9, 
   3.5762168795480967`*^9, 3.576216965241665*^9, 3.576217020832224*^9, 
   3.576217141315271*^9, {3.5762172026904078`*^9, 3.576217230672206*^9}, 
   3.576241233100178*^9, 3.576241310139721*^9, {3.576241381396892*^9, 
   3.576241403486531*^9}, 3.5762414790998635`*^9, 3.5762415568192005`*^9, 
   3.576921316283641*^9, 3.5776118680076556`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153915484375*^9, 
   3.533154010921875*^9, 3.5332733922362957`*^9, 3.538722953260125*^9, 
   3.538977592771036*^9, 3.5547156213583126`*^9, 3.5695963800650506`*^9, {
   3.569596435213205*^9, 3.5695964421306005`*^9}, 3.5695964780156527`*^9, 
   3.569596564807617*^9, 3.5695968418204613`*^9, {3.5696057476718473`*^9, 
   3.5696057579264336`*^9}, 3.5696059591979456`*^9, 3.5719772231977406`*^9, 
   3.5719776841115246`*^9, 3.5719778191624336`*^9, {3.5719865786613626`*^9, 
   3.5719865977713633`*^9}, 3.571987157619163*^9, 3.575649101840329*^9, 
   3.575651856738658*^9, 3.575716166598767*^9, 3.5757162208715143`*^9, 
   3.5757266116401076`*^9, 3.5757721877977257`*^9, 3.575772407950391*^9, 
   3.575772541003024*^9, 3.575772639588844*^9, 3.5758602661064405`*^9, 
   3.5762148047517357`*^9, {3.576214844596736*^9, 3.576214869280736*^9}, 
   3.576215463644511*^9, 3.5762155790180473`*^9, 3.576215926258768*^9, 
   3.576216006828824*^9, 3.5762160628494253`*^9, 3.5762161625487385`*^9, 
   3.5762168795480967`*^9, 3.576216965241665*^9, 3.576217020832224*^9, 
   3.576217141315271*^9, {3.5762172026904078`*^9, 3.576217230672206*^9}, 
   3.576241233100178*^9, 3.576241310139721*^9, {3.576241381396892*^9, 
   3.576241403486531*^9}, 3.5762414790998635`*^9, 3.5762415568192005`*^9, 
   3.576921316283641*^9, 3.5776118680086555`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.3333333333333333`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153915484375*^9, 
   3.533154010921875*^9, 3.5332733922362957`*^9, 3.538722953260125*^9, 
   3.538977592771036*^9, 3.5547156213583126`*^9, 3.5695963800650506`*^9, {
   3.569596435213205*^9, 3.5695964421306005`*^9}, 3.5695964780156527`*^9, 
   3.569596564807617*^9, 3.5695968418204613`*^9, {3.5696057476718473`*^9, 
   3.5696057579264336`*^9}, 3.5696059591979456`*^9, 3.5719772231977406`*^9, 
   3.5719776841115246`*^9, 3.5719778191624336`*^9, {3.5719865786613626`*^9, 
   3.5719865977713633`*^9}, 3.571987157619163*^9, 3.575649101840329*^9, 
   3.575651856738658*^9, 3.575716166598767*^9, 3.5757162208715143`*^9, 
   3.5757266116401076`*^9, 3.5757721877977257`*^9, 3.575772407950391*^9, 
   3.575772541003024*^9, 3.575772639588844*^9, 3.5758602661064405`*^9, 
   3.5762148047517357`*^9, {3.576214844596736*^9, 3.576214869280736*^9}, 
   3.576215463644511*^9, 3.5762155790180473`*^9, 3.576215926258768*^9, 
   3.576216006828824*^9, 3.5762160628494253`*^9, 3.5762161625487385`*^9, 
   3.5762168795480967`*^9, 3.576216965241665*^9, 3.576217020832224*^9, 
   3.576217141315271*^9, {3.5762172026904078`*^9, 3.576217230672206*^9}, 
   3.576241233100178*^9, 3.576241310139721*^9, {3.576241381396892*^9, 
   3.576241403486531*^9}, 3.5762414790998635`*^9, 3.5762415568192005`*^9, 
   3.576921316283641*^9, 3.577611868009656*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153915484375*^9, 
   3.533154010921875*^9, 3.5332733922362957`*^9, 3.538722953260125*^9, 
   3.538977592771036*^9, 3.5547156213583126`*^9, 3.5695963800650506`*^9, {
   3.569596435213205*^9, 3.5695964421306005`*^9}, 3.5695964780156527`*^9, 
   3.569596564807617*^9, 3.5695968418204613`*^9, {3.5696057476718473`*^9, 
   3.5696057579264336`*^9}, 3.5696059591979456`*^9, 3.5719772231977406`*^9, 
   3.5719776841115246`*^9, 3.5719778191624336`*^9, {3.5719865786613626`*^9, 
   3.5719865977713633`*^9}, 3.571987157619163*^9, 3.575649101840329*^9, 
   3.575651856738658*^9, 3.575716166598767*^9, 3.5757162208715143`*^9, 
   3.5757266116401076`*^9, 3.5757721877977257`*^9, 3.575772407950391*^9, 
   3.575772541003024*^9, 3.575772639588844*^9, 3.5758602661064405`*^9, 
   3.5762148047517357`*^9, {3.576214844596736*^9, 3.576214869280736*^9}, 
   3.576215463644511*^9, 3.5762155790180473`*^9, 3.576215926258768*^9, 
   3.576216006828824*^9, 3.5762160628494253`*^9, 3.5762161625487385`*^9, 
   3.5762168795480967`*^9, 3.576216965241665*^9, 3.576217020832224*^9, 
   3.576217141315271*^9, {3.5762172026904078`*^9, 3.576217230672206*^9}, 
   3.576241233100178*^9, 3.576241310139721*^9, {3.576241381396892*^9, 
   3.576241403486531*^9}, 3.5762414790998635`*^9, 3.5762415568192005`*^9, 
   3.576921316283641*^9, 3.577611868010656*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153915484375*^9, 
   3.533154010921875*^9, 3.5332733922362957`*^9, 3.538722953260125*^9, 
   3.538977592771036*^9, 3.5547156213583126`*^9, 3.5695963800650506`*^9, {
   3.569596435213205*^9, 3.5695964421306005`*^9}, 3.5695964780156527`*^9, 
   3.569596564807617*^9, 3.5695968418204613`*^9, {3.5696057476718473`*^9, 
   3.5696057579264336`*^9}, 3.5696059591979456`*^9, 3.5719772231977406`*^9, 
   3.5719776841115246`*^9, 3.5719778191624336`*^9, {3.5719865786613626`*^9, 
   3.5719865977713633`*^9}, 3.571987157619163*^9, 3.575649101840329*^9, 
   3.575651856738658*^9, 3.575716166598767*^9, 3.5757162208715143`*^9, 
   3.5757266116401076`*^9, 3.5757721877977257`*^9, 3.575772407950391*^9, 
   3.575772541003024*^9, 3.575772639588844*^9, 3.5758602661064405`*^9, 
   3.5762148047517357`*^9, {3.576214844596736*^9, 3.576214869280736*^9}, 
   3.576215463644511*^9, 3.5762155790180473`*^9, 3.576215926258768*^9, 
   3.576216006828824*^9, 3.5762160628494253`*^9, 3.5762161625487385`*^9, 
   3.5762168795480967`*^9, 3.576216965241665*^9, 3.576217020832224*^9, 
   3.576217141315271*^9, {3.5762172026904078`*^9, 3.576217230672206*^9}, 
   3.576241233100178*^9, 3.576241310139721*^9, {3.576241381396892*^9, 
   3.576241403486531*^9}, 3.5762414790998635`*^9, 3.5762415568192005`*^9, 
   3.576921316283641*^9, 3.577611868011656*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.5`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.5`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153915484375*^9, 
   3.533154010921875*^9, 3.5332733922362957`*^9, 3.538722953260125*^9, 
   3.538977592771036*^9, 3.5547156213583126`*^9, 3.5695963800650506`*^9, {
   3.569596435213205*^9, 3.5695964421306005`*^9}, 3.5695964780156527`*^9, 
   3.569596564807617*^9, 3.5695968418204613`*^9, {3.5696057476718473`*^9, 
   3.5696057579264336`*^9}, 3.5696059591979456`*^9, 3.5719772231977406`*^9, 
   3.5719776841115246`*^9, 3.5719778191624336`*^9, {3.5719865786613626`*^9, 
   3.5719865977713633`*^9}, 3.571987157619163*^9, 3.575649101840329*^9, 
   3.575651856738658*^9, 3.575716166598767*^9, 3.5757162208715143`*^9, 
   3.5757266116401076`*^9, 3.5757721877977257`*^9, 3.575772407950391*^9, 
   3.575772541003024*^9, 3.575772639588844*^9, 3.5758602661064405`*^9, 
   3.5762148047517357`*^9, {3.576214844596736*^9, 3.576214869280736*^9}, 
   3.576215463644511*^9, 3.5762155790180473`*^9, 3.576215926258768*^9, 
   3.576216006828824*^9, 3.5762160628494253`*^9, 3.5762161625487385`*^9, 
   3.5762168795480967`*^9, 3.576216965241665*^9, 3.576217020832224*^9, 
   3.576217141315271*^9, {3.5762172026904078`*^9, 3.576217230672206*^9}, 
   3.576241233100178*^9, 3.576241310139721*^9, {3.576241381396892*^9, 
   3.576241403486531*^9}, 3.5762414790998635`*^9, 3.5762415568192005`*^9, 
   3.576921316283641*^9, 3.5776118680136557`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, 3.533153915484375*^9, 
   3.533154010921875*^9, 3.5332733922362957`*^9, 3.538722953260125*^9, 
   3.538977592771036*^9, 3.5547156213583126`*^9, 3.5695963800650506`*^9, {
   3.569596435213205*^9, 3.5695964421306005`*^9}, 3.5695964780156527`*^9, 
   3.569596564807617*^9, 3.5695968418204613`*^9, {3.5696057476718473`*^9, 
   3.5696057579264336`*^9}, 3.5696059591979456`*^9, 3.5719772231977406`*^9, 
   3.5719776841115246`*^9, 3.5719778191624336`*^9, {3.5719865786613626`*^9, 
   3.5719865977713633`*^9}, 3.571987157619163*^9, 3.575649101840329*^9, 
   3.575651856738658*^9, 3.575716166598767*^9, 3.5757162208715143`*^9, 
   3.5757266116401076`*^9, 3.5757721877977257`*^9, 3.575772407950391*^9, 
   3.575772541003024*^9, 3.575772639588844*^9, 3.5758602661064405`*^9, 
   3.5762148047517357`*^9, {3.576214844596736*^9, 3.576214869280736*^9}, 
   3.576215463644511*^9, 3.5762155790180473`*^9, 3.576215926258768*^9, 
   3.576216006828824*^9, 3.5762160628494253`*^9, 3.5762161625487385`*^9, 
   3.5762168795480967`*^9, 3.576216965241665*^9, 3.576217020832224*^9, 
   3.576217141315271*^9, {3.5762172026904078`*^9, 3.576217230672206*^9}, 
   3.576241233100178*^9, 3.576241310139721*^9, {3.576241381396892*^9, 
   3.576241403486531*^9}, 3.5762414790998635`*^9, 3.5762415568192005`*^9, 
   3.576921316283641*^9, 3.5776118680136557`*^9}],

Cell[BoxData["\<\"HydraulicValve43LS.xml\"\>"], "Output",
 CellChangeTimes->{
  3.569596442156602*^9, 3.5695964780176535`*^9, 3.5695965648956223`*^9, 
   3.5695968418424625`*^9, {3.569605747694848*^9, 3.5696057579434347`*^9}, 
   3.5696059592139463`*^9, 3.5719772232289414`*^9, 3.571977684158325*^9, 
   3.571977819178034*^9, {3.5719865787081633`*^9, 3.571986597786963*^9}, 
   3.571987157650363*^9, 3.5756491018473296`*^9, 3.575651856752659*^9, 
   3.5757161666143665`*^9, 3.5757162208871145`*^9, 3.5757266116557074`*^9, 
   3.575772187828926*^9, 3.5757724079659905`*^9, 3.5757725410186243`*^9, 
   3.575772639588844*^9, 3.5758602661064405`*^9, 3.576214804765736*^9, {
   3.576214844610736*^9, 3.5762148692887363`*^9}, 3.5762154636575127`*^9, 
   3.5762155790300484`*^9, 3.5762159263047724`*^9, 3.5762160068418255`*^9, 
   3.5762160628934298`*^9, 3.576216162559739*^9, 3.576216879589101*^9, 
   3.5762169652866697`*^9, 3.5762170208432245`*^9, 3.576217141359275*^9, {
   3.576217202726411*^9, 3.5762172306902075`*^9}, 3.576241233115778*^9, 
   3.576241310139721*^9, {3.576241381396892*^9, 3.576241403486531*^9}, 
   3.5762414791154633`*^9, 3.5762415568348002`*^9, 3.5769213162966413`*^9, 
   3.577611868014656*^9}]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData["file"], "Input",
 CellChangeTimes->{{3.5695964249786196`*^9, 3.569596425479648*^9}}],

Cell[BoxData["\<\"C:\\\\HopsanTrunk\\\\HOPSAN++\\\\componentLibraries\\\\\
devLibraries\\\\PettersMatematica\\\\HydraulicValve43LS.hpp\"\>"], "Output",
 CellChangeTimes->{{3.5695964261716876`*^9, 3.5695964421856036`*^9}, 
   3.5695964780416546`*^9, 3.5695965649326243`*^9, 3.5695968418684645`*^9, {
   3.56960574772085*^9, 3.569605757965436*^9}, 3.569605959238948*^9, 
   3.5719772232601423`*^9, 3.5719776841895256`*^9, 3.5719778192092338`*^9, {
   3.5719865787393627`*^9, 3.571986597818163*^9}, 3.571987157681563*^9, 
   3.575649101871331*^9, 3.57565185677466*^9, 3.5757161666299667`*^9, 
   3.575716220918315*^9, 3.575726611686908*^9, 3.575772187860126*^9, 
   3.5757724080127907`*^9, 3.5757725410342245`*^9, 3.5757726396200438`*^9, 
   3.575860266137625*^9, 3.576214804797736*^9, {3.5762148446377363`*^9, 
   3.576214869311736*^9}, 3.5762154636835146`*^9, 3.576215579057051*^9, 
   3.576215926341776*^9, 3.5762160068738284`*^9, 3.5762160629354343`*^9, 
   3.5762161625987387`*^9, 3.576216879623104*^9, 3.5762169653266735`*^9, 
   3.5762170208762283`*^9, 3.576217141488288*^9, {3.576217202765415*^9, 
   3.576217230725211*^9}, 3.576241233131378*^9, 3.5762413101709213`*^9, {
   3.576241381428092*^9, 3.5762414035177307`*^9}, 3.5762414791466637`*^9, 
   3.5762415568504*^9, 3.576921316342641*^9, 3.577611868040659*^9}]
}, Open  ]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell["Valve63OC, 6-3 directional valve", "Section",
 PageWidth->WindowWidth,
 CellChangeTimes->{{3.52818909584375*^9, 3.528189095984375*^9}, {
  3.528190641546875*^9, 3.52819066121875*^9}, {3.571987422806363*^9, 
  3.5719874268467627`*^9}}],

Cell[CellGroupData[{

Cell["Component description", "Subsection",
 PageWidth->WindowWidth],

Cell["\<\
This subroutine simulates the flow trough a 4-3 directional valve.\
\>", "Text",
 PageWidth->WindowWidth]
}, Open  ]],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<Valve63OC\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{
  "brief", "=", "\"\<A load sensing hydraulic directional valve\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.507887022343302*^9, 
   3.507887057967846*^9}, {3.5078871702320337`*^9, 3.507887175028847*^9}, {
   3.5158208831437864`*^9, 3.51582092036206*^9}, {3.5158209798300486`*^9, 
   3.51582099300181*^9}, {3.522605661421875*^9, 3.522605661625*^9}, {
   3.565433404364499*^9, 3.5654334224825306`*^9}, {3.5695965311236906`*^9, 
   3.569596540324217*^9}, 3.571988803470143*^9, 3.5757721167556014`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"p", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Pressure port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"t", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Tank port\>\""}], "]"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"a", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Load port A\>\""}], "]"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"b", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Load port B\>\""}], "]"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"ocp", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<open centre port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"oct", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<open centre port\>\""}], 
      "]"}]}], "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.503919051294972*^9, 3.503919119154347*^9}, {
   3.503923736440875*^9, 3.503923751003375*^9}, {3.5039293570625*^9, 
   3.503929406765625*^9}, 3.50394250446875*^9, {3.50399668911909*^9, 
   3.5039966973713074`*^9}, {3.507548807751546*^9, 3.5075488260955305`*^9}, {
   3.515612779640625*^9, 3.515612784234375*^9}, {3.5281892315*^9, 
   3.52818925309375*^9}, {3.528190809390625*^9, 3.5281908101875*^9}, {
   3.52819086009375*^9, 3.528190875796875*^9}, {3.529051523831678*^9, 
   3.529051534581953*^9}, {3.5719948680522685`*^9, 3.5719948780519323`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputVariables", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{"{", 
     RowBox[{
     "xv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
      "\"\<Spool position\>\""}], "}"}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.571994842405704*^9, 3.571994911670148*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "rho", ",", "860.", ",", "double", ",", "\"\<kg/m3\>\"", ",", 
       "\"\<oil density\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Cq", ",", "0.67", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Flow coefficient.\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Sd", ",", ".001", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<spool diameter\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frap", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(P-A)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frat", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(A-T)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frbp", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(P-B)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Frbt", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(B-T)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Froc", ",", "1.", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Spool cricle fraction(OC)\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xap0", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Overlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xat0", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Overlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xbp0", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Overlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xbt0", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Overlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xoc0", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Underlap oc port\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xvmax", ",", "0.01", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Max valve opening\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "plam", ",", "10000.", ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Turbulence onset pressure\>\""}], "}"}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 PageWidth->WindowWidth,
 CellChangeTimes->{{3.503916073562605*^9, 3.50391608476573*^9}, {
   3.5039161716261826`*^9, 3.503916172813698*^9}, 3.503919167716847*^9, {
   3.505588895375*^9, 3.5055889695*^9}, {3.505589016640625*^9, 
   3.505589034984375*^9}, {3.505589276125*^9, 3.505589277078125*^9}, {
   3.505590362109375*^9, 3.50559036675*^9}, {3.505590803484375*^9, 
   3.50559082509375*^9}, {3.5075449148100324`*^9, 3.507544933372048*^9}, {
   3.5075449813674784`*^9, 3.507545001403344*^9}, {3.507562171421875*^9, 
   3.50756217203125*^9}, {3.5158237803828354`*^9, 3.5158238002578354`*^9}, {
   3.52819029396875*^9, 3.5281904303125*^9}, {3.52819089640625*^9, 
   3.52819089659375*^9}, {3.528190956609375*^9, 3.52819095703125*^9}, {
   3.529050478554863*^9, 3.52905051410242*^9}, {3.5719889027695446`*^9, 
   3.5719889145476956`*^9}, {3.5719947240789456`*^9, 3.57199473415661*^9}, 
   3.5719962110997653`*^9, {3.5761597431625776`*^9, 3.576159745191694*^9}, {
   3.5761598067472143`*^9, 3.5761598072342424`*^9}}],

Cell[BoxData[""], "Input",
 CellChangeTimes->{{3.52819030840625*^9, 3.528190310328125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"qpa", " ", "=", " ", 
   RowBox[{"Kspa", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pp", "-", "pa"}], ",", "plam"}], "]"}]}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"qta", " ", "=", " ", 
   RowBox[{"Ksta", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pt", "-", "pa"}], ",", "plam"}], "]"}]}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"qpb", " ", "=", " ", 
   RowBox[{"Kspb", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pp", "-", "pb"}], ",", "plam"}], "]"}]}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"qtb", " ", "=", " ", 
   RowBox[{"Kstb", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pt", "-", "pb"}], ",", "plam"}], "]"}]}]}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"qoc", "=", " ", 
   RowBox[{"Ksoc", " ", 
    RowBox[{"signedSquareL", "[", 
     RowBox[{
      RowBox[{"pocp", "-", "poct"}], ",", "plam"}], "]"}]}]}], 
  ";"}]}], "Input",
 CellChangeTimes->{
  3.504198984265625*^9, 3.505589001421875*^9, {3.5075513871678333`*^9, 
   3.5075513902618604`*^9}, {3.5158238134609604`*^9, 
   3.5158238195390854`*^9}, {3.528189406765625*^9, 3.5281894573125*^9}, {
   3.528189492765625*^9, 3.52818949975*^9}, {3.52819110228125*^9, 
   3.528191133625*^9}, {3.5719926624660387`*^9, 3.571992663261644*^9}, 
   3.571992699188674*^9, {3.571993510590267*^9, 3.57199351101147*^9}, {
   3.5719972657623267`*^9, 3.571997274841876*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"Xpa", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{"xv", " ", "-", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "-", " ", "Xap0"}]}], "]"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"Xta", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{
      RowBox[{"-", "xv"}], " ", "-", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "-", " ", "Xat0"}]}], "]"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"Xpb", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{
      RowBox[{"-", "xv"}], " ", "-", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "-", " ", "Xbp0"}]}], "]"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"Xtb", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{"xv", " ", "-", " ", "Xap0"}], ",", "0.", ",", 
     RowBox[{"Xvmax", " ", "-", " ", "Xbt0"}]}], "]"}]}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"Xsoc", " ", "=", " ", 
   RowBox[{"limit", "[", 
    RowBox[{
     RowBox[{"Xoc0", "-", 
      RowBox[{"Abs", "[", "xv", "]"}]}], ",", "0.", ",", "Xoc0"}], " ", 
    "]"}]}], ";"}]}], "Input",
 CellChangeTimes->{{3.50558966315625*^9, 3.50558969203125*^9}, {
   3.5055897985*^9, 3.505589808*^9}, {3.507562582*^9, 3.507562588921875*^9}, {
   3.52818973471875*^9, 3.528189747125*^9}, {3.528190104078125*^9, 
   3.52819013678125*^9}, {3.528190218359375*^9, 3.528190242265625*^9}, {
   3.528191192140625*^9, 3.528191282484375*^9}, {3.528191336171875*^9, 
   3.52819139153125*^9}, {3.528191573453125*^9, 3.5281915794375*^9}, {
   3.528191769671875*^9, 3.52819179496875*^9}, {3.528191827140625*^9, 
   3.528191848625*^9}, {3.5719890179926214`*^9, 3.571989041595724*^9}, 
   3.571991095631262*^9, {3.5719947396478453`*^9, 3.5719947464182887`*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"wpa", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frap"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"wta", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frat"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"wpb", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frbp"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"wtb", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Frbt"}]}], ";"}], "\n", 
 RowBox[{
  RowBox[{"woc", " ", "=", " ", 
   RowBox[{"pi", " ", "Sd", " ", "Froc"}]}], ";"}]}], "Input",
 CellChangeTimes->{{3.5055896995*^9, 3.505589724359375*^9}, {
   3.52818961478125*^9, 3.52818962775*^9}, {3.52819141465625*^9, 
   3.528191420546875*^9}, 3.5719947873997517`*^9, {3.571994931638276*^9, 
   3.571994939609927*^9}, {3.571997607129902*^9, 3.5719976071923027`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"localExpressions", " ", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"Ks", "==", 
      RowBox[{"Cq", "*", 
       FractionBox[
        RowBox[{"N", "[", 
         SqrtBox["2"], "]"}], 
        SqrtBox["rho"]]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Kspa", "==", 
      RowBox[{"Xpa", " ", "wpa", " ", "Ks"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Ksta", "==", 
      RowBox[{"Xta", " ", "wta", " ", "Ks"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Kspb", "==", 
      RowBox[{"Xpb", " ", "wpb", " ", "Ks"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Kstb", "==", 
      RowBox[{"Xtb", " ", "wtb", " ", "Ks"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Ksoc", "==", 
      RowBox[{"Xsoc", " ", "woc", " ", "Ks"}]}]}], "\n", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.571902363819522*^9, 3.571902434097645*^9}, {
   3.571992639565092*^9, 3.5719926473495417`*^9}, 3.5719933765975847`*^9, {
   3.5719934722608213`*^9, 3.5719934834304934`*^9}, 3.5719947894121647`*^9}],

Cell[BoxData[
 RowBox[{"qocp", "=."}]], "Input",
 CellChangeTimes->{{3.5719935277943873`*^9, 3.571993528543192*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemEquationsDA", " ", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"qp", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{
        RowBox[{"-", "qpa"}], "-", "qpb"}], " ", ")"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"qt", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{
        RowBox[{"-", "qta"}], "-", "qtb"}], ")"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"qa", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{"qpa", "+", "qta"}], ")"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"qb", " ", "==", " ", 
      RowBox[{"(", 
       RowBox[{"qpb", "+", "qtb"}], ")"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"qoct", "\[Equal]", "qoc"}]}], " ", "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.50754870493773*^9, 3.507548721672319*^9}, {
   3.528189282484375*^9, 3.528189346515625*^9}, {3.52819026384375*^9, 
   3.52819026821875*^9}, {3.52819098409375*^9, 3.528191014640625*^9}, {
   3.52819107765625*^9, 3.52819108903125*^9}, {3.528192039796875*^9, 
   3.528192043421875*^9}, 3.528192129359375*^9, 3.5290515551293545`*^9, {
   3.5719021634059696`*^9, 3.571902207569647*^9}, 3.5719887356872735`*^9, {
   3.5719890888486*^9, 3.571989095229041*^9}, {3.5719910143547406`*^9, 
   3.5719910239800024`*^9}, {3.5719926289258237`*^9, 
   3.5719926341518574`*^9}, {3.571992704180706*^9, 3.5719927063647203`*^9}, 
   3.571993580382324*^9, 3.5719936227521963`*^9, {3.571993673115904*^9, 
   3.5719936768131275`*^9}, {3.571997262049384*^9, 3.5719972897248487`*^9}, {
   3.5719973716591997`*^9, 3.5719973942800694`*^9}, 3.5719974949990005`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", " ", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"pp", " ", "==", " ", 
      RowBox[{"cpe", " ", "+", " ", 
       RowBox[{"Zcpe", " ", "qp"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"pt", " ", "==", " ", 
      RowBox[{"cte", " ", "+", " ", 
       RowBox[{"Zcte", " ", "qt"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"pa", " ", "==", " ", 
      RowBox[{"cae", " ", "+", " ", 
       RowBox[{"Zcae", " ", "qa"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"pb", " ", "==", " ", 
      RowBox[{"cbe", " ", "+", " ", 
       RowBox[{"Zcbe", " ", "qb"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"pocp", " ", "==", " ", 
      RowBox[{"cocpe", " ", "+", " ", 
       RowBox[{"Zcocpe", " ", "qocp"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"poct", "==", " ", 
      RowBox[{"cocte", " ", "+", " ", 
       RowBox[{"Zcocte", " ", "qoct"}]}]}]}], "\n", "      ", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.50559120440625*^9, 3.50559120803125*^9}, {
   3.505591469296875*^9, 3.505591475125*^9}, {3.5075486382337513`*^9, 
   3.5075486907344227`*^9}, {3.51582107740806*^9, 3.5158210786736856`*^9}, {
   3.515900481708085*^9, 3.5159004828643227`*^9}, {3.528190463921875*^9, 
   3.52819050078125*^9}, {3.528191938203125*^9, 3.528191948921875*^9}, {
   3.5719022220620728`*^9, 3.571902281248576*^9}, 3.571988684924223*^9, {
   3.5719911230874376`*^9, 3.571991160714879*^9}, {3.57199259248399*^9, 
   3.571992622529783*^9}, {3.5719939466884403`*^9, 3.571993975096223*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", 
    RowBox[{"qocp", "\[Equal]", 
     RowBox[{"-", "qoct"}]}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.571997313734172*^9, 3.5719973600991554`*^9}, {
  3.5719974005203094`*^9, 3.571997403172412*^9}, {3.5719974798301735`*^9, 
  3.5719974812498283`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", " ", "=", " ", 
   RowBox[{"{", 
    RowBox[{
    "qp", ",", "qt", ",", "qa", ",", "qb", ",", "qoct", ",", "pp", ",", "pt", 
     ",", "pa", ",", "pb", ",", "pocp", ",", "poct"}], "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.503916309424025*^9, 3.5039163118146653`*^9}, 
   3.504160933453125*^9, 3.504161512171875*^9, {3.50416161690625*^9, 
   3.504161620484375*^9}, {3.52819027446875*^9, 3.528190282078125*^9}, {
   3.5281909710625*^9, 3.5281909784375*^9}, {3.571992562500598*^9, 
   3.571992588552765*^9}, {3.5719927163331842`*^9, 3.5719927282516603`*^9}, {
   3.5719973686794853`*^9, 3.5719973969477725`*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input"],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \\\"HydraulicValve63OC\\\"\\)\\), \
\\(\\(\\\"displayname\\\" \[Rule] \\(\\(\\\"\\\" \[Ellipsis] \
\\\"C\\\"\\)\\)\\)\\)}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\
\\({\\(\\(\\\"isopath\\\" \[Rule] \\\"HydraulicValve63OC.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicValve63OC.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\
\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \\(\\({\\(\
\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.14285714285714285`\\)\\), \\(\\(\\\
\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"Pp\\\"\\)\\)}\
\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \
\\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.2857142857142857`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"Pt\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(\[LeftSkeleton] 4 \[RightSkeleton]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \
0.5`\\)\\), \\(\\(\\\"y\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"270\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"xv\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\(\\(\\\"\\\" \[Ellipsis] \\\"\\\"\\)\\) \[Rule] \
\\(\\(\[LeftSkeleton] 5 \[RightSkeleton]\\)\\)}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\), \\(\\(\\(\\(\\\"d\\\" \[Ellipsis] \\\"me\\\"\\)\\) \
\[Rule] \\(\\(\\\"\\\" \[Ellipsis] \\\"\\\"\\)\\)\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicValve63OC.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicValve63OC.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\
\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.14285714285714285`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"Pp\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.2857142857142857`\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"Pt\\\"\\)\\)}\\)\\), \\(\\({}\
\\)\\)\\)\\)]\\)\\), \\(\\(\[LeftSkeleton] 4 \[RightSkeleton]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \
0.5`\\)\\), \\(\\(\\\"y\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"270\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"xv\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\
\[NoBreak] is not a list of contents. The third item in an XMLElement must be \
a list of contents, even if it is an empty list. \\!\\(\\*ButtonBox[\\\"\
\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, {3.529051428719868*^9, 
   3.5290514523923492`*^9}, 3.5331539174375*^9, 3.533154012046875*^9, 
   3.533273392361287*^9, 3.53872295346325*^9, 3.538977593286661*^9, 
   3.5547156214988956`*^9, 3.5719772233693438`*^9, 3.571987297905963*^9, 
   3.57198746115127*^9, {3.571988627375085*^9, 3.5719886476241446`*^9}, 
   3.571988712474176*^9, 3.5719887665756693`*^9, 3.57198881420308*^9, 
   3.5719933996450787`*^9, {3.5719935592597895`*^9, 3.5719935843135495`*^9}, 
   3.571993626355819*^9, 3.5719938710967727`*^9, 3.5719940148140774`*^9, 
   3.5719942607340536`*^9, 3.571994969234517*^9, 3.571995066609432*^9, 
   3.5719964376756177`*^9, 3.571996496439829*^9, 3.571997416994543*^9, {
   3.5719974868192425`*^9, 3.5719974985247364`*^9}, 3.5719976173012323`*^9, 
   3.575649102492367*^9, 3.5756518570616765`*^9, 3.5757161669887695`*^9, 
   3.575716221074316*^9, 3.575726611905308*^9, 3.575772188125326*^9, 
   3.575772408324791*^9, 3.575772541299425*^9, 3.575772639869644*^9, 
   3.5758602663247337`*^9, 3.5762148049797363`*^9, {3.576214844825736*^9, 
   3.5762148695347357`*^9}, 3.5762154639305396`*^9, 3.5762155792930746`*^9, 
   3.576215926702812*^9, 3.5762160071448555`*^9, 3.5762160632844687`*^9, 
   3.576216162885739*^9, 3.576216880089151*^9, 3.5762169656797085`*^9, 
   3.5762170212482653`*^9, 3.5762171417683163`*^9, {3.576217203121451*^9, 
   3.576217231085247*^9}, 3.5762412333965783`*^9, 3.5762413103425217`*^9, {
   3.5762413816152925`*^9, 3.576241403689331*^9}, 3.576241479396264*^9, 
   3.5762415570220003`*^9, 3.576921316654641*^9, 3.5776118683686914`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, {3.529051428719868*^9, 
   3.5290514523923492`*^9}, 3.5331539174375*^9, 3.533154012046875*^9, 
   3.533273392361287*^9, 3.53872295346325*^9, 3.538977593286661*^9, 
   3.5547156214988956`*^9, 3.5719772233693438`*^9, 3.571987297905963*^9, 
   3.57198746115127*^9, {3.571988627375085*^9, 3.5719886476241446`*^9}, 
   3.571988712474176*^9, 3.5719887665756693`*^9, 3.57198881420308*^9, 
   3.5719933996450787`*^9, {3.5719935592597895`*^9, 3.5719935843135495`*^9}, 
   3.571993626355819*^9, 3.5719938710967727`*^9, 3.5719940148140774`*^9, 
   3.5719942607340536`*^9, 3.571994969234517*^9, 3.571995066609432*^9, 
   3.5719964376756177`*^9, 3.571996496439829*^9, 3.571997416994543*^9, {
   3.5719974868192425`*^9, 3.5719974985247364`*^9}, 3.5719976173012323`*^9, 
   3.575649102492367*^9, 3.5756518570616765`*^9, 3.5757161669887695`*^9, 
   3.575716221074316*^9, 3.575726611905308*^9, 3.575772188125326*^9, 
   3.575772408324791*^9, 3.575772541299425*^9, 3.575772639869644*^9, 
   3.5758602663247337`*^9, 3.5762148049797363`*^9, {3.576214844825736*^9, 
   3.5762148695347357`*^9}, 3.5762154639305396`*^9, 3.5762155792930746`*^9, 
   3.576215926702812*^9, 3.5762160071448555`*^9, 3.5762160632844687`*^9, 
   3.576216162885739*^9, 3.576216880089151*^9, 3.5762169656797085`*^9, 
   3.5762170212482653`*^9, 3.5762171417683163`*^9, {3.576217203121451*^9, 
   3.576217231085247*^9}, 3.5762412333965783`*^9, 3.5762413103425217`*^9, {
   3.5762413816152925`*^9, 3.576241403689331*^9}, 3.576241479396264*^9, 
   3.5762415570220003`*^9, 3.576921316654641*^9, 3.577611868369692*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.14285714285714285`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.14285714285714285`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, {3.529051428719868*^9, 
   3.5290514523923492`*^9}, 3.5331539174375*^9, 3.533154012046875*^9, 
   3.533273392361287*^9, 3.53872295346325*^9, 3.538977593286661*^9, 
   3.5547156214988956`*^9, 3.5719772233693438`*^9, 3.571987297905963*^9, 
   3.57198746115127*^9, {3.571988627375085*^9, 3.5719886476241446`*^9}, 
   3.571988712474176*^9, 3.5719887665756693`*^9, 3.57198881420308*^9, 
   3.5719933996450787`*^9, {3.5719935592597895`*^9, 3.5719935843135495`*^9}, 
   3.571993626355819*^9, 3.5719938710967727`*^9, 3.5719940148140774`*^9, 
   3.5719942607340536`*^9, 3.571994969234517*^9, 3.571995066609432*^9, 
   3.5719964376756177`*^9, 3.571996496439829*^9, 3.571997416994543*^9, {
   3.5719974868192425`*^9, 3.5719974985247364`*^9}, 3.5719976173012323`*^9, 
   3.575649102492367*^9, 3.5756518570616765`*^9, 3.5757161669887695`*^9, 
   3.575716221074316*^9, 3.575726611905308*^9, 3.575772188125326*^9, 
   3.575772408324791*^9, 3.575772541299425*^9, 3.575772639869644*^9, 
   3.5758602663247337`*^9, 3.5762148049797363`*^9, {3.576214844825736*^9, 
   3.5762148695347357`*^9}, 3.5762154639305396`*^9, 3.5762155792930746`*^9, 
   3.576215926702812*^9, 3.5762160071448555`*^9, 3.5762160632844687`*^9, 
   3.576216162885739*^9, 3.576216880089151*^9, 3.5762169656797085`*^9, 
   3.5762170212482653`*^9, 3.5762171417683163`*^9, {3.576217203121451*^9, 
   3.576217231085247*^9}, 3.5762412333965783`*^9, 3.5762413103425217`*^9, {
   3.5762413816152925`*^9, 3.576241403689331*^9}, 3.576241479396264*^9, 
   3.5762415570220003`*^9, 3.576921316654641*^9, 3.5776118683716917`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, {3.529051428719868*^9, 
   3.5290514523923492`*^9}, 3.5331539174375*^9, 3.533154012046875*^9, 
   3.533273392361287*^9, 3.53872295346325*^9, 3.538977593286661*^9, 
   3.5547156214988956`*^9, 3.5719772233693438`*^9, 3.571987297905963*^9, 
   3.57198746115127*^9, {3.571988627375085*^9, 3.5719886476241446`*^9}, 
   3.571988712474176*^9, 3.5719887665756693`*^9, 3.57198881420308*^9, 
   3.5719933996450787`*^9, {3.5719935592597895`*^9, 3.5719935843135495`*^9}, 
   3.571993626355819*^9, 3.5719938710967727`*^9, 3.5719940148140774`*^9, 
   3.5719942607340536`*^9, 3.571994969234517*^9, 3.571995066609432*^9, 
   3.5719964376756177`*^9, 3.571996496439829*^9, 3.571997416994543*^9, {
   3.5719974868192425`*^9, 3.5719974985247364`*^9}, 3.5719976173012323`*^9, 
   3.575649102492367*^9, 3.5756518570616765`*^9, 3.5757161669887695`*^9, 
   3.575716221074316*^9, 3.575726611905308*^9, 3.575772188125326*^9, 
   3.575772408324791*^9, 3.575772541299425*^9, 3.575772639869644*^9, 
   3.5758602663247337`*^9, 3.5762148049797363`*^9, {3.576214844825736*^9, 
   3.5762148695347357`*^9}, 3.5762154639305396`*^9, 3.5762155792930746`*^9, 
   3.576215926702812*^9, 3.5762160071448555`*^9, 3.5762160632844687`*^9, 
   3.576216162885739*^9, 3.576216880089151*^9, 3.5762169656797085`*^9, 
   3.5762170212482653`*^9, 3.5762171417683163`*^9, {3.576217203121451*^9, 
   3.576217231085247*^9}, 3.5762412333965783`*^9, 3.5762413103425217`*^9, {
   3.5762413816152925`*^9, 3.576241403689331*^9}, 3.576241479396264*^9, 
   3.5762415570220003`*^9, 3.576921316654641*^9, 3.577611868372692*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.2857142857142857`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.2857142857142857`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, {3.529051428719868*^9, 
   3.5290514523923492`*^9}, 3.5331539174375*^9, 3.533154012046875*^9, 
   3.533273392361287*^9, 3.53872295346325*^9, 3.538977593286661*^9, 
   3.5547156214988956`*^9, 3.5719772233693438`*^9, 3.571987297905963*^9, 
   3.57198746115127*^9, {3.571988627375085*^9, 3.5719886476241446`*^9}, 
   3.571988712474176*^9, 3.5719887665756693`*^9, 3.57198881420308*^9, 
   3.5719933996450787`*^9, {3.5719935592597895`*^9, 3.5719935843135495`*^9}, 
   3.571993626355819*^9, 3.5719938710967727`*^9, 3.5719940148140774`*^9, 
   3.5719942607340536`*^9, 3.571994969234517*^9, 3.571995066609432*^9, 
   3.5719964376756177`*^9, 3.571996496439829*^9, 3.571997416994543*^9, {
   3.5719974868192425`*^9, 3.5719974985247364`*^9}, 3.5719976173012323`*^9, 
   3.575649102492367*^9, 3.5756518570616765`*^9, 3.5757161669887695`*^9, 
   3.575716221074316*^9, 3.575726611905308*^9, 3.575772188125326*^9, 
   3.575772408324791*^9, 3.575772541299425*^9, 3.575772639869644*^9, 
   3.5758602663247337`*^9, 3.5762148049797363`*^9, {3.576214844825736*^9, 
   3.5762148695347357`*^9}, 3.5762154639305396`*^9, 3.5762155792930746`*^9, 
   3.576215926702812*^9, 3.5762160071448555`*^9, 3.5762160632844687`*^9, 
   3.576216162885739*^9, 3.576216880089151*^9, 3.5762169656797085`*^9, 
   3.5762170212482653`*^9, 3.5762171417683163`*^9, {3.576217203121451*^9, 
   3.576217231085247*^9}, 3.5762412333965783`*^9, 3.5762413103425217`*^9, {
   3.5762413816152925`*^9, 3.576241403689331*^9}, 3.576241479396264*^9, 
   3.5762415570220003`*^9, 3.576921316654641*^9, 3.577611868373692*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, {3.529051428719868*^9, 
   3.5290514523923492`*^9}, 3.5331539174375*^9, 3.533154012046875*^9, 
   3.533273392361287*^9, 3.53872295346325*^9, 3.538977593286661*^9, 
   3.5547156214988956`*^9, 3.5719772233693438`*^9, 3.571987297905963*^9, 
   3.57198746115127*^9, {3.571988627375085*^9, 3.5719886476241446`*^9}, 
   3.571988712474176*^9, 3.5719887665756693`*^9, 3.57198881420308*^9, 
   3.5719933996450787`*^9, {3.5719935592597895`*^9, 3.5719935843135495`*^9}, 
   3.571993626355819*^9, 3.5719938710967727`*^9, 3.5719940148140774`*^9, 
   3.5719942607340536`*^9, 3.571994969234517*^9, 3.571995066609432*^9, 
   3.5719964376756177`*^9, 3.571996496439829*^9, 3.571997416994543*^9, {
   3.5719974868192425`*^9, 3.5719974985247364`*^9}, 3.5719976173012323`*^9, 
   3.575649102492367*^9, 3.5756518570616765`*^9, 3.5757161669887695`*^9, 
   3.575716221074316*^9, 3.575726611905308*^9, 3.575772188125326*^9, 
   3.575772408324791*^9, 3.575772541299425*^9, 3.575772639869644*^9, 
   3.5758602663247337`*^9, 3.5762148049797363`*^9, {3.576214844825736*^9, 
   3.5762148695347357`*^9}, 3.5762154639305396`*^9, 3.5762155792930746`*^9, 
   3.576215926702812*^9, 3.5762160071448555`*^9, 3.5762160632844687`*^9, 
   3.576216162885739*^9, 3.576216880089151*^9, 3.5762169656797085`*^9, 
   3.5762170212482653`*^9, 3.5762171417683163`*^9, {3.576217203121451*^9, 
   3.576217231085247*^9}, 3.5762412333965783`*^9, 3.5762413103425217`*^9, {
   3.5762413816152925`*^9, 3.576241403689331*^9}, 3.576241479396264*^9, 
   3.5762415570220003`*^9, 3.576921316654641*^9, 3.577611868373692*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, {3.529051428719868*^9, 
   3.5290514523923492`*^9}, 3.5331539174375*^9, 3.533154012046875*^9, 
   3.533273392361287*^9, 3.53872295346325*^9, 3.538977593286661*^9, 
   3.5547156214988956`*^9, 3.5719772233693438`*^9, 3.571987297905963*^9, 
   3.57198746115127*^9, {3.571988627375085*^9, 3.5719886476241446`*^9}, 
   3.571988712474176*^9, 3.5719887665756693`*^9, 3.57198881420308*^9, 
   3.5719933996450787`*^9, {3.5719935592597895`*^9, 3.5719935843135495`*^9}, 
   3.571993626355819*^9, 3.5719938710967727`*^9, 3.5719940148140774`*^9, 
   3.5719942607340536`*^9, 3.571994969234517*^9, 3.571995066609432*^9, 
   3.5719964376756177`*^9, 3.571996496439829*^9, 3.571997416994543*^9, {
   3.5719974868192425`*^9, 3.5719974985247364`*^9}, 3.5719976173012323`*^9, 
   3.575649102492367*^9, 3.5756518570616765`*^9, 3.5757161669887695`*^9, 
   3.575716221074316*^9, 3.575726611905308*^9, 3.575772188125326*^9, 
   3.575772408324791*^9, 3.575772541299425*^9, 3.575772639869644*^9, 
   3.5758602663247337`*^9, 3.5762148049797363`*^9, {3.576214844825736*^9, 
   3.5762148695347357`*^9}, 3.5762154639305396`*^9, 3.5762155792930746`*^9, 
   3.576215926702812*^9, 3.5762160071448555`*^9, 3.5762160632844687`*^9, 
   3.576216162885739*^9, 3.576216880089151*^9, 3.5762169656797085`*^9, 
   3.5762170212482653`*^9, 3.5762171417683163`*^9, {3.576217203121451*^9, 
   3.576217231085247*^9}, 3.5762412333965783`*^9, 3.5762413103425217`*^9, {
   3.5762413816152925`*^9, 3.576241403689331*^9}, 3.576241479396264*^9, 
   3.5762415570220003`*^9, 3.576921316654641*^9, 3.577611868374692*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.42857142857142855`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.42857142857142855`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, {3.529051428719868*^9, 
   3.5290514523923492`*^9}, 3.5331539174375*^9, 3.533154012046875*^9, 
   3.533273392361287*^9, 3.53872295346325*^9, 3.538977593286661*^9, 
   3.5547156214988956`*^9, 3.5719772233693438`*^9, 3.571987297905963*^9, 
   3.57198746115127*^9, {3.571988627375085*^9, 3.5719886476241446`*^9}, 
   3.571988712474176*^9, 3.5719887665756693`*^9, 3.57198881420308*^9, 
   3.5719933996450787`*^9, {3.5719935592597895`*^9, 3.5719935843135495`*^9}, 
   3.571993626355819*^9, 3.5719938710967727`*^9, 3.5719940148140774`*^9, 
   3.5719942607340536`*^9, 3.571994969234517*^9, 3.571995066609432*^9, 
   3.5719964376756177`*^9, 3.571996496439829*^9, 3.571997416994543*^9, {
   3.5719974868192425`*^9, 3.5719974985247364`*^9}, 3.5719976173012323`*^9, 
   3.575649102492367*^9, 3.5756518570616765`*^9, 3.5757161669887695`*^9, 
   3.575716221074316*^9, 3.575726611905308*^9, 3.575772188125326*^9, 
   3.575772408324791*^9, 3.575772541299425*^9, 3.575772639869644*^9, 
   3.5758602663247337`*^9, 3.5762148049797363`*^9, {3.576214844825736*^9, 
   3.5762148695347357`*^9}, 3.5762154639305396`*^9, 3.5762155792930746`*^9, 
   3.576215926702812*^9, 3.5762160071448555`*^9, 3.5762160632844687`*^9, 
   3.576216162885739*^9, 3.576216880089151*^9, 3.5762169656797085`*^9, 
   3.5762170212482653`*^9, 3.5762171417683163`*^9, {3.576217203121451*^9, 
   3.576217231085247*^9}, 3.5762412333965783`*^9, 3.5762413103425217`*^9, {
   3.5762413816152925`*^9, 3.576241403689331*^9}, 3.576241479396264*^9, 
   3.5762415570220003`*^9, 3.576921316654641*^9, 3.5776118683756924`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.522605225734375*^9, 3.522605921921875*^9, 3.522606219859375*^9, 
   3.5226062996875*^9, 3.52484263065625*^9, {3.529051428719868*^9, 
   3.5290514523923492`*^9}, 3.5331539174375*^9, 3.533154012046875*^9, 
   3.533273392361287*^9, 3.53872295346325*^9, 3.538977593286661*^9, 
   3.5547156214988956`*^9, 3.5719772233693438`*^9, 3.571987297905963*^9, 
   3.57198746115127*^9, {3.571988627375085*^9, 3.5719886476241446`*^9}, 
   3.571988712474176*^9, 3.5719887665756693`*^9, 3.57198881420308*^9, 
   3.5719933996450787`*^9, {3.5719935592597895`*^9, 3.5719935843135495`*^9}, 
   3.571993626355819*^9, 3.5719938710967727`*^9, 3.5719940148140774`*^9, 
   3.5719942607340536`*^9, 3.571994969234517*^9, 3.571995066609432*^9, 
   3.5719964376756177`*^9, 3.571996496439829*^9, 3.571997416994543*^9, {
   3.5719974868192425`*^9, 3.5719974985247364`*^9}, 3.5719976173012323`*^9, 
   3.575649102492367*^9, 3.5756518570616765`*^9, 3.5757161669887695`*^9, 
   3.575716221074316*^9, 3.575726611905308*^9, 3.575772188125326*^9, 
   3.575772408324791*^9, 3.575772541299425*^9, 3.575772639869644*^9, 
   3.5758602663247337`*^9, 3.5762148049797363`*^9, {3.576214844825736*^9, 
   3.5762148695347357`*^9}, 3.5762154639305396`*^9, 3.5762155792930746`*^9, 
   3.576215926702812*^9, 3.5762160071448555`*^9, 3.5762160632844687`*^9, 
   3.576216162885739*^9, 3.576216880089151*^9, 3.5762169656797085`*^9, 
   3.5762170212482653`*^9, 3.5762171417683163`*^9, {3.576217203121451*^9, 
   3.576217231085247*^9}, 3.5762412333965783`*^9, 3.5762413103425217`*^9, {
   3.5762413816152925`*^9, 3.576241403689331*^9}, 3.576241479396264*^9, 
   3.5762415570220003`*^9, 3.576921316654641*^9, 3.5776118683756924`*^9}],

Cell[BoxData["\<\"HydraulicValve63OC.xml\"\>"], "Output",
 CellChangeTimes->{
  3.533153917484375*^9, 3.53315401209375*^9, 3.533273392361287*^9, 
   3.53872295346325*^9, 3.538977593302286*^9, 3.5547156214988956`*^9, 
   3.571977223400545*^9, 3.571987297983963*^9, 3.57198746122927*^9, {
   3.571988627468686*^9, 3.5719886477021456`*^9}, 3.571988712988983*^9, 
   3.5719887666068697`*^9, 3.5719888142342806`*^9, 3.5719933997542796`*^9, {
   3.5719935593221893`*^9, 3.57199358439155*^9}, 3.571993626371419*^9, 
   3.571993871112373*^9, 3.571994014829677*^9, 3.571994260749654*^9, 
   3.5719949692501173`*^9, 3.571995066609432*^9, 3.571996437691218*^9, 
   3.5719964964710293`*^9, 3.571997417056946*^9, {3.571997486881645*^9, 
   3.5719974985403366`*^9}, 3.5719976173324327`*^9, 3.5756491024993668`*^9, 
   3.5756518570716767`*^9, 3.5757161669887695`*^9, 3.575716221089916*^9, 
   3.575726611920908*^9, 3.5757721881565266`*^9, 3.5757724083559914`*^9, 
   3.575772541315025*^9, 3.5757726399008446`*^9, 3.5758602663403263`*^9, 
   3.5762148049937363`*^9, {3.5762148448507357`*^9, 3.576214869547736*^9}, 
   3.576215463944541*^9, 3.576215579315077*^9, 3.5762159267168136`*^9, 
   3.5762160071708584`*^9, 3.576216063304471*^9, 3.5762161628977385`*^9, 
   3.576216880138156*^9, 3.5762169656967106`*^9, 3.576217021268267*^9, 
   3.576217141800319*^9, {3.576217203163455*^9, 3.5762172310932474`*^9}, 
   3.5762412334121785`*^9, 3.5762413103425217`*^9, {3.5762413816152925`*^9, 
   3.576241403751731*^9}, 3.5762414794118643`*^9, 3.5762415570376005`*^9, 
   3.576921316667641*^9, 3.5776118683766923`*^9}]
}, Open  ]]
}, Closed]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData[{
 StyleBox["PistonMload\n",
  FontFamily->"System"],
 StyleBox["Piston with an inertia load",
  FontSize->16]
}], "Section",
 Evaluatable->False,
 CellChangeTimes->{{3.5719259951024055`*^9, 3.571926013136037*^9}, {
  3.57192608862457*^9, 3.57192608876497*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<PistonMload\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"brief", "=", "\"\<This is piston with an inertia load\>\""}], 
  ";"}], "\n", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.5137112151875*^9, 3.513711217109375*^9}, {
   3.51378596903125*^9, 3.513785980671875*^9}, 3.515394539753217*^9, {
   3.515775693875*^9, 3.5157757050625*^9}, {3.517048046727305*^9, 
   3.51704806093043*^9}, 3.51707206725*^9, {3.5176530686834764`*^9, 
   3.51765311057437*^9}, {3.517673126703125*^9, 3.517673126796875*^9}, {
   3.5177214423487377`*^9, 3.517721453114225*^9}, {3.5177222281793466`*^9, 
   3.517722236008023*^9}, {3.5209603293125*^9, 3.520960329578125*^9}, 
   3.521782180515625*^9, {3.52178222675*^9, 3.521782271609375*^9}, {
   3.521782314984375*^9, 3.52178231528125*^9}, 3.575772117551203*^9}],

Cell[CellGroupData[{

Cell["Component description", "Subsection"],

Cell["Piston with an inertia load", "Text"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Component equations", "Subsection"],

Cell["The name of the component  is stored in ComponentName.", "Text"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Variables and parameters", "Subsection"],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "  ", "=", " ", 
   RowBox[{"{", "\n", "\t", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "A1", ",", "0.001", ",", "double", ",", "\"\<m2\>\"", ",", 
       "\"\<Piston area 1\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "A2", ",", "0.001", ",", "double", ",", "\"\<m2\>\"", ",", 
       "\"\<Piston area 2\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "SL", ",", "0.5", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Stroke\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "Cip", ",", "0.", ",", "double", ",", "\"\<m3/(s Pa)\>\"", ",", 
       "\"\<Leak coeff.\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "Bp", ",", "0.", ",", "double", ",", "\"\<N/m/s\>\"", ",", 
       "\"\<Visc. friction coeff.\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "ML", ",", "1000.", ",", "double", ",", "\"\<kg\>\"", ",", 
       "\"\<Inertia\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "BL", ",", "0.", ",", "double", ",", "\"\<Ns/m\>\"", ",", 
       "\"\<Viscous friction coefficient of load\>\""}], "}"}], ",", "\n", 
     "\t", 
     RowBox[{"{", 
      RowBox[{
      "xmin", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Limitation on stroke\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "xmax", ",", "0.5", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Limitation on stroke\>\""}], "}"}]}], "\n", "\t", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.524850755625*^9, 3.524850755640625*^9}, {
  3.52488620107195*^9, 3.5248862016031866`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\n", "    \t", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<hydraulic node 1\>\""}], "]"}], 
     ",", "\n", "    \t", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<hydraulic node 2\>\""}], "]"}], 
     ",", "\n", "    \t", 
     RowBox[{"MechanicQnode", "[", 
      RowBox[{"mp", ",", "0.", ",", "\"\<mechanical node\>\""}], "]"}]}], 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.524850747078125*^9, 3.524850747078125*^9}}]
}, Open  ]],

Cell[CellGroupData[{

Cell["The system of equations", "Subsection"],

Cell[BoxData[
 RowBox[{"\t", 
  RowBox[{
   RowBox[{
    RowBox[{"p1e", " ", "=", " ", 
     RowBox[{"c1", " ", "+", " ", 
      RowBox[{"Zc1", " ", "q1"}]}]}], ";"}], "\n", "\t", 
   RowBox[{
    RowBox[{"p2e", " ", "=", " ", 
     RowBox[{"c2", " ", "+", " ", 
      RowBox[{"Zc2", " ", "q2"}]}]}], ";"}], "\n", "\t", 
   RowBox[{
    RowBox[{"fmpe", "=", " ", 
     RowBox[{"cmp", " ", "+", " ", 
      RowBox[{"Zcmp", " ", "vmp"}]}]}], ";"}]}]}]], "Input",
 CellChangeTimes->{{3.525533762265625*^9, 3.5255337993125*^9}}],

Cell["The generated piston force", "Text"],

Cell[BoxData[
 RowBox[{
  RowBox[{"fg", " ", "=", " ", 
   RowBox[{
    RowBox[{"A1", " ", "p1e"}], " ", "-", " ", 
    RowBox[{"A2", " ", "p2e"}]}]}], ";"}]], "Input",
 CellChangeTimes->{{3.52178209578125*^9, 3.52178209959375*^9}, {
  3.525533871796875*^9, 3.525533873453125*^9}}],

Cell["Differrential algebraic equations", "Text",
 CellChangeTimes->{{3.5719031558017125`*^9, 3.571903170964939*^9}}],

Cell[BoxData[
 RowBox[{"systemEquationsDA", " ", ":=", " ", 
  RowBox[{"{", "\n", "\t", 
   RowBox[{
    RowBox[{
     RowBox[{
      RowBox[{"ML", " ", 
       RowBox[{"der", "[", 
        RowBox[{"der", "[", "xmp", "]"}], "]"}]}], " ", "+", " ", 
      RowBox[{
       RowBox[{"(", 
        RowBox[{"Bp", "+", "BL"}], ")"}], " ", "vmp"}]}], " ", "==", " ", 
     RowBox[{"(", 
      RowBox[{"fg", " ", "-", " ", "fmpe"}], ")"}]}], ",", "\n", "\t", 
    RowBox[{
     RowBox[{
      RowBox[{"ML", " ", 
       RowBox[{"der", "[", "vmp", "]"}]}], " ", "+", " ", 
      RowBox[{
       RowBox[{"(", 
        RowBox[{"Bp", "+", "BL"}], ")"}], " ", "vmp"}]}], "  ", "==", " ", 
     RowBox[{"(", 
      RowBox[{"fg", " ", "-", " ", "fmpe"}], ")"}]}], ",", "\n", "\t", 
    RowBox[{"q1", " ", "\[Equal]", 
     RowBox[{"-", " ", 
      RowBox[{"(", 
       RowBox[{
        RowBox[{"A1", " ", "vmp"}], " ", "+", " ", 
        RowBox[{"Cip", "*", 
         RowBox[{"(", 
          RowBox[{"p1", "-", "p2"}], ")"}]}]}], ")"}]}]}], ",", "\n", "\t", 
    RowBox[{"q2", " ", "==", " ", 
     RowBox[{"(", 
      RowBox[{
       RowBox[{"A2", " ", "vmp"}], " ", "+", " ", 
       RowBox[{"Cip", "*", 
        RowBox[{"(", 
         RowBox[{"p1", "-", "p2"}], ")"}]}]}], ")"}]}]}], "\n", "\t", 
   "}"}]}]], "Input",
 CellChangeTimes->{{3.524850724265625*^9, 3.524850724265625*^9}, {
  3.5248862080873957`*^9, 3.5248862098842244`*^9}, {3.525533811359375*^9, 
  3.5255338209375*^9}, {3.525533863078125*^9, 3.52553386709375*^9}, {
  3.5719029473073463`*^9, 3.5719029663237796`*^9}}],

Cell["The boundarys", "Text"],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", " ", "=", " ", 
   RowBox[{"{", "\n", "\t", 
    RowBox[{
     RowBox[{"p1", " ", "==", " ", 
      RowBox[{"c1", " ", "+", " ", 
       RowBox[{"Zc1", " ", "q1"}]}]}], ",", "\n", "\t", 
     RowBox[{"p2", " ", "==", " ", 
      RowBox[{"c2", " ", "+", " ", 
       RowBox[{"Zc2", " ", "q2"}]}]}], ",", "\n", "\t", 
     RowBox[{"fmp", " ", "==", " ", 
      RowBox[{"cmp", " ", "+", " ", 
       RowBox[{"Zcmp", " ", "vmp"}]}]}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.52485078196875*^9, 3.52485078196875*^9}, {
  3.5719029765417976`*^9, 3.571902992984226*^9}}],

Cell["The  vector of independent variables of the system are", "Text",
 CellChangeTimes->{{3.524850810625*^9, 3.52485083609375*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", "=", " ", 
   RowBox[{"{", 
    RowBox[{
    "xmp", ",", "vmp", ",", "q1", ",", "q2", ",", "p1", ",", "p2", ",", 
     "fmp"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.524850716875*^9, 3.524850716875*^9}}],

Cell["Limitatons", "Text",
 CellChangeTimes->{{3.524850848515625*^9, 3.524850857984375*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"variable2Limits", "=", 
   RowBox[{"{", 
    RowBox[{"{", 
     RowBox[{"xmp", ",", "vmp", ",", "xmin", ",", "xmax"}], "}"}], "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.521781710359375*^9, 3.521781715921875*^9}, 
   3.521781911703125*^9, {3.521782089203125*^9, 3.521782090109375*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input"],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.5776118685387087`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 2\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.577611868539709*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(2, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.577611868539709*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Part :: \
partd\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.5776118685407085`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \\\"HydraulicPistonMload\\\"\\)\\), \\(\
\\(\\\"displayname\\\" \[Rule] \\\"HydraulicPistonMload\\\"\\)\\)}\\)\\), \\(\
\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \[Rule] \
\\\"HydraulicPistonMload.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \[Rule] \\\
\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \\\"HydraulicPistonMload.svg\\\
\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.25`\\)\\), \\(\\(\\\"a\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.5`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P2\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.75`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"Pmp\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\
\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\(\\(\\\"\\\" \[Ellipsis] \\\"\\\"\\)\\) \[Rule] \
\\(\\(\[LeftSkeleton] 5 \[RightSkeleton]\\)\\)}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\\\"typename\\\" \
\[Rule] \\\"HydraulicPistonMload\\\"\\)\\), \\(\\(\\(\\(\\\"d\\\" \[Ellipsis] \
\\\"me\\\"\\)\\) \[Rule] \\(\\(\\\"\\\" \[Ellipsis] \
\\\"\\\"\\)\\)\\)\\)}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \
\\(\\({\\(\\(\\\"isopath\\\" \[Rule] \\\"HydraulicPistonMload.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicPistonMload.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\
\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.25`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P1\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.5`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.75`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"Pmp\\\
\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\
\[NoBreak] is not a list of contents. The third item in an XMLElement must be \
a list of contents, even if it is an empty list. \\!\\(\\*ButtonBox[\\\"\
\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.5776118685927143`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.5776118685937138`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.25`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.25`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.5776118685937138`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.577611868594714*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.5`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.5`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.5776118685957146`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.5776118685957146`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.5776118685967145`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.75`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.75`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.5776118685977144`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.525533933765625*^9, 
   3.533153919890625*^9, 3.533154015640625*^9, 3.5332733930956106`*^9, 
   3.53872295377575*^9, 3.538977595036661*^9, 3.5547156219050264`*^9, 
   3.5719772238217525`*^9, 3.571987618639287*^9, 3.57564910378244*^9, 
   3.5756518573746943`*^9, 3.575716167378772*^9, 3.575716221526719*^9, 
   3.575726612404509*^9, 3.5757721887181273`*^9, 3.5757724088863926`*^9, 
   3.575772541720626*^9, 3.575772640212845*^9, 3.5758602666989517`*^9, 
   3.576214805334736*^9, {3.576214845199736*^9, 3.576214869873736*^9}, 
   3.5762154640895557`*^9, 3.5762155794600916`*^9, 3.576215926948837*^9, 
   3.5762160074728885`*^9, 3.576216063540495*^9, 3.5762161631647387`*^9, 
   3.576216880413183*^9, 3.576216965928734*^9, 3.576217021479288*^9, 
   3.576217142049344*^9, {3.5762172034024787`*^9, 3.5762172312742653`*^9}, 
   3.576241233568179*^9, 3.576241310482922*^9, {3.5762413817556925`*^9, 
   3.5762414039389315`*^9}, 3.576241479552264*^9, 3.5762415571624007`*^9, 
   3.576921316923641*^9, 3.577611868598715*^9}],

Cell[BoxData["\<\"HydraulicPistonMload.xml\"\>"], "Output",
 CellChangeTimes->{
  3.53315392021875*^9, 3.5331540156875*^9, 3.533273393189354*^9, 
   3.53872295383825*^9, 3.538977595114786*^9, 3.5547156219675083`*^9, 
   3.571977223837353*^9, 3.571987618717287*^9, 3.5756491038404436`*^9, 
   3.5756518574526987`*^9, 3.575716167425572*^9, 3.575716221604719*^9, 
   3.575726612498109*^9, 3.5757721888585277`*^9, 3.5757724089799924`*^9, 
   3.575772541798626*^9, 3.575772640306445*^9, 3.5758602667769136`*^9, 
   3.576214805418736*^9, {3.576214845305736*^9, 3.5762148699617357`*^9}, 
   3.576215464185565*^9, 3.5762155795451*^9, 3.576215927074849*^9, 
   3.576216007581899*^9, 3.5762160636705074`*^9, 3.5762161632847385`*^9, 
   3.5762168805461965`*^9, 3.5762169660907497`*^9, 3.576217021615302*^9, 
   3.576217142220361*^9, {3.5762172035374928`*^9, 3.576217231376276*^9}, 
   3.576241233630579*^9, 3.5762413105609217`*^9, {3.5762413818492928`*^9, 
   3.5762414040325317`*^9}, 3.5762414796458645`*^9, 3.576241557256001*^9, 
   3.5769213170536413`*^9, 3.577611868598715*^9}]
}, Open  ]]
}, Closed]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData[{
 StyleBox["PistonMkload\n",
  FontFamily->"System"],
 StyleBox["Piston with an inertia load and spring",
  FontSize->16]
}], "Section",
 Evaluatable->False,
 CellChangeTimes->{{3.52488616965088*^9, 3.5248861799318666`*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<PistonMkload\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"brief", "=", "\"\<This is piston with an inertia load\>\""}], 
  ";"}], "\n", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.5137112151875*^9, 3.513711217109375*^9}, {
   3.51378596903125*^9, 3.513785980671875*^9}, 3.515394539753217*^9, {
   3.515775693875*^9, 3.5157757050625*^9}, {3.517048046727305*^9, 
   3.51704806093043*^9}, 3.51707206725*^9, {3.5176530686834764`*^9, 
   3.51765311057437*^9}, {3.517673126703125*^9, 3.517673126796875*^9}, {
   3.5177214423487377`*^9, 3.517721453114225*^9}, {3.5177222281793466`*^9, 
   3.517722236008023*^9}, {3.5209603293125*^9, 3.520960329578125*^9}, 
   3.521782180515625*^9, {3.52178222675*^9, 3.521782271609375*^9}, {
   3.521782314984375*^9, 3.52178231528125*^9}, 3.5248861854161005`*^9, 
   3.5757721184092045`*^9}],

Cell[CellGroupData[{

Cell["Component description", "Subsection"],

Cell["Piston with an inertia load", "Text"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Component equations", "Subsection"],

Cell["The name of the component  is stored in ComponentName.", "Text"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Variables and parameters", "Subsection"],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "  ", "=", " ", 
   RowBox[{"{", "\n", "\t", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "A1", ",", "0.001", ",", "double", ",", "\"\<m2\>\"", ",", 
       "\"\<Piston area 1\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "A2", ",", "0.001", ",", "double", ",", "\"\<m2\>\"", ",", 
       "\"\<Piston area 2\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "SL", ",", "0.5", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Stroke\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "Cip", ",", "0.", ",", "double", ",", "\"\<m3/(s Pa)\>\"", ",", 
       "\"\<Leak coeff.\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "Bp", ",", "0.", ",", "double", ",", "\"\<N/m/s\>\"", ",", 
       "\"\<Visc. friction coeff.\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "ML", ",", "1000.", ",", "double", ",", "\"\<kg\>\"", ",", 
       "\"\<Inertia\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "BL", ",", "0.", ",", "double", ",", "\"\<Ns/m\>\"", ",", 
       "\"\<Viscous friction coefficient of load\>\""}], "}"}], ",", "\n", 
     "\t", 
     RowBox[{"{", 
      RowBox[{
      "KL", ",", "0.", ",", "double", ",", "\"\<N/m\>\"", ",", 
       "\"\<Stiffness coefficient of load\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "xmin", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Limitation on stroke\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "xmax", ",", "0.5", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Limitation on stroke\>\""}], "}"}]}], "\n", "\t", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.524850755625*^9, 3.524850755640625*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\n", "    \t", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<hydraulic node 1\>\""}], "]"}], 
     ",", "\n", "    \t", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<hydraulic node 2\>\""}], "]"}], 
     ",", "\n", "    \t", 
     RowBox[{"MechanicQnode", "[", 
      RowBox[{"mp", ",", "0.", ",", "\"\<mechanical node\>\""}], "]"}]}], 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.524850747078125*^9, 3.524850747078125*^9}}]
}, Open  ]],

Cell[CellGroupData[{

Cell["The system of equations", "Subsection"],

Cell["The generated piston force", "Text"],

Cell[BoxData[
 RowBox[{
  RowBox[{"fg", " ", "=", " ", 
   RowBox[{
    RowBox[{"A1", " ", "p1"}], " ", "-", " ", 
    RowBox[{"A2", " ", "p2"}]}]}], ";"}]], "Input",
 CellChangeTimes->{{3.52178209578125*^9, 3.52178209959375*^9}}],

Cell["The  vector of independent variables of the system are", "Text",
 CellChangeTimes->{{3.524850810625*^9, 3.52485083609375*^9}}],

Cell[BoxData[
 RowBox[{"systemEquationsDA", " ", ":=", " ", 
  RowBox[{"{", "\n", "\t", 
   RowBox[{
    RowBox[{
     RowBox[{
      RowBox[{"ML", " ", 
       RowBox[{"der", "[", 
        RowBox[{"der", "[", "xmp", "]"}], "]"}]}], " ", "+", " ", 
      RowBox[{
       RowBox[{"(", 
        RowBox[{"Bp", "+", "BL"}], ")"}], " ", "vmp"}], " ", "+", " ", 
      RowBox[{"KL", " ", "xmp"}]}], " ", "==", " ", 
     RowBox[{"(", 
      RowBox[{"fg", " ", "-", " ", "fmp"}], ")"}]}], ",", "\n", "\t", 
    RowBox[{
     RowBox[{
      RowBox[{"ML", " ", 
       RowBox[{"der", "[", "vmp", "]"}]}], " ", "+", " ", 
      RowBox[{
       RowBox[{"(", 
        RowBox[{"Bp", "+", "BL"}], ")"}], " ", "vmp"}], " ", "+", " ", 
      RowBox[{"KL", " ", "xmp"}]}], " ", "==", " ", 
     RowBox[{"(", 
      RowBox[{"fg", " ", "-", " ", "fmp"}], ")"}]}], ",", "\n", "\t", 
    RowBox[{"q1", " ", "\[Equal]", 
     RowBox[{"-", " ", 
      RowBox[{"(", 
       RowBox[{
        RowBox[{"A1", " ", "vmp"}], " ", "+", " ", 
        RowBox[{"Cip", "*", 
         RowBox[{"(", 
          RowBox[{"p1", "-", "p2"}], ")"}]}]}], ")"}]}]}], ",", "\n", "\t", 
    RowBox[{"q2", " ", "==", " ", 
     RowBox[{"(", 
      RowBox[{
       RowBox[{"A2", " ", "vmp"}], " ", "+", " ", 
       RowBox[{"Cip", "*", 
        RowBox[{"(", 
         RowBox[{"p1", "-", "p2"}], ")"}]}]}], ")"}]}]}], "\n", "\t", 
   "}"}]}]], "Input",
 CellChangeTimes->{{3.524850724265625*^9, 3.524850724265625*^9}, {
  3.571903224566633*^9, 3.571903236734655*^9}}],

Cell["The boundarys", "Text"],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", " ", "=", " ", 
   RowBox[{"{", "\n", "\t", 
    RowBox[{
     RowBox[{"p1", " ", "==", " ", 
      RowBox[{"c1", " ", "+", " ", 
       RowBox[{"Zc1", " ", "q1"}]}]}], ",", "\n", "\t", 
     RowBox[{"p2", " ", "==", " ", 
      RowBox[{"c2", " ", "+", " ", 
       RowBox[{"Zc2", " ", "q2"}]}]}], ",", "\n", "\t", 
     RowBox[{"fmp", " ", "==", " ", 
      RowBox[{"cmp", " ", "+", " ", 
       RowBox[{"Zcmp", " ", "vmp"}]}]}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.52485078196875*^9, 3.52485078196875*^9}, {
  3.5719029765417976`*^9, 3.571902992984226*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", "=", " ", 
   RowBox[{"{", 
    RowBox[{
    "xmp", ",", "vmp", ",", "q1", ",", "q2", ",", "p1", ",", "p2", ",", 
     "fmp"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.524850716875*^9, 3.524850716875*^9}}],

Cell["Limitatons", "Text",
 CellChangeTimes->{{3.524850848515625*^9, 3.524850857984375*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"variable2Limits", "=", 
   RowBox[{"{", 
    RowBox[{"{", 
     RowBox[{"xmp", ",", "vmp", ",", "xmin", ",", "xmax"}], "}"}], "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.521781710359375*^9, 3.521781715921875*^9}, 
   3.521781911703125*^9, {3.521782089203125*^9, 3.521782090109375*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input"],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 2\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.5776118687467294`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(2, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.5776118687477293`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Part :: \
partd\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.5776118687487297`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \\\"HydraulicPistonMkload\\\"\\)\\), \
\\(\\(\\\"displayname\\\" \[Rule] \\\"HydraulicPistonMkload\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicPistonMkload.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicPistonMkload.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.25`\\)\\), \\(\\(\\\"a\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.5`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P2\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.75`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"Pmp\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\
\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\(\\(\\\"\\\" \[Ellipsis] \\\"\\\"\\)\\) \[Rule] \
\\(\\(\[LeftSkeleton] 5 \[RightSkeleton]\\)\\)}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\\\"typename\\\" \
\[Rule] \\\"HydraulicPistonMkload\\\"\\)\\), \\(\\(\\(\\(\\\"\\\" \[Ellipsis] \
\\\"\\\"\\)\\) \[Rule] \\(\\(\\\"\\\" \[Ellipsis] \
\\\"\\\"\\)\\)\\)\\)}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \
\\(\\({\\(\\(\\\"isopath\\\" \[Rule] \\\"HydraulicPistonMkload.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicPistonMkload.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\
\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \\(\\({\
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\
\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.25`\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \\(\\({}\
\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\
\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.5`\\)\\), \\(\\(\\\
\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\
\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \
\\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.75`\
\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"Pmp\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\
\\)\\)\\)]\\)\\)\\)\\)]\\)\[NoBreak] is not a list of contents. The third \
item in an XMLElement must be a list of contents, even if it is an empty \
list. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.5776118687867336`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.5776118687887335`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.25`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.25`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868789734*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868790734*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.5`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.5`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.5776118687917337`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868792734*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868793734*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.75`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.75`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868794734*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868794734*^9}],

Cell[BoxData["\<\"HydraulicPistonMkload.xml\"\>"], "Output",
 CellChangeTimes->{
  3.533153921609375*^9, 3.533154017109375*^9, 3.533273393470584*^9, 
   3.5387229539945*^9, 3.538977595552286*^9, 3.5547156222174344`*^9, 
   3.5719772239777555`*^9, 3.571987620511299*^9, 3.5756491040354548`*^9, 
   3.5756518576257086`*^9, 3.575716167612773*^9, 3.5757162217763205`*^9, 
   3.5757266126853094`*^9, 3.575772189123728*^9, 3.575772409198393*^9, 
   3.575772542017026*^9, 3.5757726405560455`*^9, 3.5758602669796147`*^9, 
   3.576214805676736*^9, {3.576214845575736*^9, 3.576214870169736*^9}, 
   3.576215464386585*^9, 3.57621557974712*^9, 3.5762159273578777`*^9, 
   3.5762160078469257`*^9, 3.5762160639805384`*^9, 3.576216163575739*^9, 
   3.5762168808642282`*^9, 3.5762169664337845`*^9, 3.5762170219173317`*^9, 
   3.5762171426474037`*^9, {3.5762172038565245`*^9, 3.576217231678306*^9}, 
   3.5762412338177795`*^9, 3.576241310810522*^9, {3.576241382098893*^9, 
   3.5762414042197323`*^9}, 3.576241479833065*^9, 3.5762415575056014`*^9, 
   3.5769213175916414`*^9, 3.5776118687957344`*^9}]
}, Open  ]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData[{
 StyleBox["PistonJload\n",
  FontFamily->"System"],
 StyleBox["Piston with a rotational inertia load",
  FontSize->16]
}], "Section",
 Evaluatable->False,
 CellChangeTimes->{
  3.52178424140625*^9, {3.5719260778449507`*^9, 3.5719260819477577`*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<PistonJload\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"brief", "=", "\"\<This is piston with a linked inertia load\>\""}],
   ";"}], "\n", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.5137112151875*^9, 3.513711217109375*^9}, {
   3.51378596903125*^9, 3.513785980671875*^9}, 3.515394539753217*^9, {
   3.515775693875*^9, 3.5157757050625*^9}, {3.517048046727305*^9, 
   3.51704806093043*^9}, 3.51707206725*^9, {3.5176530686834764`*^9, 
   3.51765311057437*^9}, {3.517673126703125*^9, 3.517673126796875*^9}, {
   3.5177214423487377`*^9, 3.517721453114225*^9}, {3.5177222281793466`*^9, 
   3.517722236008023*^9}, {3.5209603293125*^9, 3.520960329578125*^9}, 
   3.521782180515625*^9, {3.52178222675*^9, 3.521782271609375*^9}, {
   3.521782314984375*^9, 3.52178231528125*^9}, {3.521784250453125*^9, 
   3.521784262859375*^9}, 3.575772119236006*^9}],

Cell[CellGroupData[{

Cell["Component description", "Subsection"],

Cell["Piston with an rotational inertia load through a link", "Text",
 CellChangeTimes->{{3.5719041449732885`*^9, 3.571904153163303*^9}}]
}, Open  ]],

Cell["Component equations", "Subsection"],

Cell[CellGroupData[{

Cell["Variables and parameters", "Subsection"],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "  ", "=", " ", 
   RowBox[{"{", "\n", "\t", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "A1", ",", "0.001", ",", "double", ",", "\"\<m2\>\"", ",", 
       "\"\<Piston area 1\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "A2", ",", "0.001", ",", "double", ",", "\"\<m2\>\"", ",", 
       "\"\<Piston area 2\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "SL", ",", "0.5", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Stroke\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "xp0", ",", "0.5", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Stroke pos at zero angle\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "Lever", ",", "0.5", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Lever\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "Cip", ",", "0.", ",", "double", ",", "\"\<m3/(s Pa)\>\"", ",", 
       "\"\<Leak coeff.\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "Bp", ",", "0.", ",", "double", ",", "\"\<N/m/s\>\"", ",", 
       "\"\<Visc. friction coeff.\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "JL", ",", "1000.", ",", "double", ",", "\"\<kg m^2\>\"", ",", 
       "\"\<Inertia\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "BL", ",", "0.", ",", "double", ",", "\"\<Nm s\>\"", ",", 
       "\"\<Viscous friction coefficient of load\>\""}], "}"}], ",", "\n", 
     "\t", 
     RowBox[{"{", 
      RowBox[{
      "KL", ",", "0.", ",", "double", ",", "\"\<Nm\>\"", ",", 
       "\"\<Stiffness coefficient of load\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{"thetamin", ",", 
       RowBox[{"-", "0.5"}], ",", "double", ",", "\"\<rad\>\"", ",", 
       "\"\<Limitation on stroke\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "thetamax", ",", "0.5", ",", "double", ",", "\"\<rad\>\"", ",", 
       "\"\<Limitation on stroke\>\""}], "}"}]}], "\n", "\t", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.5236768668027444`*^9, 3.5236768668027444`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"outputVariables", " ", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "xp", ",", "0.0", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Piston position\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "vp", ",", "0.0", ",", "double", ",", "\"\<m/s\>\"", ",", 
       "\"\<Piston velocity\>\""}], "}"}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.5217849808125*^9, 3.521785064578125*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\n", "    \t", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<hydraulic node 1\>\""}], "]"}], 
     ",", "\n", "    \t", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<hydraulic node 2\>\""}], "]"}], 
     ",", "\n", "    \t", 
     RowBox[{"MechanicRotQnode", "[", 
      RowBox[{"mr", ",", "0.", ",", "\"\<mechanical rot. node\>\""}], "]"}]}],
     "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.5236768831921105`*^9, 3.523676883207734*^9}}]
}, Open  ]],

Cell[CellGroupData[{

Cell["The system of equations", "Subsection"],

Cell["The state vector ya  of the system is defined as", "Text"],

Cell[CellGroupData[{

Cell[BoxData[{
 RowBox[{
  RowBox[{"vpe", "=", 
   RowBox[{"wmr", " ", "Lever"}]}], ";"}], "\[IndentingNewLine]", 
 RowBox[{"xpe", "=", 
  RowBox[{"xp0", "+", 
   RowBox[{"thetamr", " ", "Lever"}]}]}]}], "Input",
 CellChangeTimes->{{3.521784673859375*^9, 3.521784745265625*^9}, {
  3.521784866015625*^9, 3.521784867359375*^9}, {3.521785074453125*^9, 
  3.52178507525*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"Lever", " ", "thetamr"}], "+", "xp0"}]], "Output",
 CellChangeTimes->{
  3.522605229671875*^9, 3.522605923265625*^9, 3.52260622071875*^9, 
   3.522606300640625*^9, 3.524842633515625*^9, 3.533153922453125*^9, 
   3.53315401734375*^9, 3.5332733935330796`*^9, 3.538722954260125*^9, 
   3.538977595583536*^9, 3.55471562282663*^9, 3.5719772240557575`*^9, 
   3.575649104112459*^9, 3.5756518576867123`*^9, 3.5757161677063737`*^9, 
   3.5757162218543205`*^9, 3.5757266127633095`*^9, 3.575772189217328*^9, 
   3.575772409291993*^9, 3.5757725421262264`*^9, 3.5757726406340456`*^9, 
   3.575860267104354*^9, 3.576214805753736*^9, {3.576214845658736*^9, 
   3.5762148702437363`*^9}, 3.5762154644685936`*^9, 3.576215579827128*^9, 
   3.576215927529895*^9, 3.5762160079469357`*^9, 3.576216064107551*^9, 
   3.576216163681739*^9, 3.5762168810482464`*^9, 3.576216966632804*^9, 
   3.576217022016342*^9, 3.576217142775417*^9, {3.5762172040475435`*^9, 
   3.5762172317813168`*^9}, 3.576241233911379*^9, 3.576241310872923*^9, {
   3.5762413821924934`*^9, 3.576241404282132*^9}, 3.576241479911065*^9, 
   3.576241557583602*^9, 3.5769213176976414`*^9, 3.577611868866741*^9}]
}, Open  ]],

Cell["The generated piston force", "Text"],

Cell[BoxData[
 RowBox[{
  RowBox[{"fg", " ", "=", " ", 
   RowBox[{
    RowBox[{"A1", " ", "p1"}], " ", "-", " ", 
    RowBox[{"A2", " ", "p2"}]}]}], ";"}]], "Input",
 CellChangeTimes->{{3.52178209578125*^9, 3.52178209959375*^9}}],

Cell[BoxData[
 RowBox[{"systemEquationsDa", " ", ":=", " ", 
  RowBox[{"{", "\n", "\t", 
   RowBox[{
    RowBox[{
     RowBox[{
      RowBox[{"JL", " ", 
       RowBox[{"der", "[", 
        RowBox[{"der", "[", "thetamr", "]"}], "]"}]}], " ", "+", " ", 
      RowBox[{"Bp", " ", "vpe"}], " ", "+", " ", 
      RowBox[{"BL", " ", "wmr"}], " ", "+", " ", 
      RowBox[{"KL", " ", "thetamr"}]}], " ", "==", " ", 
     RowBox[{"(", 
      RowBox[{"torg", " ", "-", " ", "tormr"}], ")"}]}], ",", "\n", "\t", 
    RowBox[{
     RowBox[{
      RowBox[{"JL", " ", 
       RowBox[{"der", "[", "wmr", "]"}]}], "  ", "+", " ", 
      RowBox[{"Bp", " ", "vpe"}], " ", "+", " ", 
      RowBox[{"BL", " ", "wmr"}], " ", "+", " ", 
      RowBox[{"KL", " ", "thetamr"}]}], " ", "==", " ", 
     RowBox[{"(", 
      RowBox[{"torg", " ", "-", " ", "tormr"}], ")"}]}], ",", "\n", "\t", 
    RowBox[{"q1", " ", "==", 
     RowBox[{"-", " ", 
      RowBox[{"(", 
       RowBox[{
        RowBox[{"A1", " ", "vp"}], " ", "+", " ", 
        RowBox[{"Cip", "*", 
         RowBox[{"(", 
          RowBox[{"p1", "-", "p2"}], ")"}]}]}], ")"}]}]}], ",", "\n", "\t", 
    RowBox[{"q2", " ", "==", " ", 
     RowBox[{"(", 
      RowBox[{
       RowBox[{"A2", " ", "vp"}], " ", "+", " ", 
       RowBox[{"Cip", "*", 
        RowBox[{"(", 
         RowBox[{"p1", "-", "p2"}], ")"}]}]}], ")"}]}]}], "\n", "\t", 
   "}"}]}]], "Input",
 CellChangeTimes->{{3.571904099280408*^9, 3.571904099296008*^9}}],

Cell["The boundarys", "Text"],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", " ", "=", " ", 
   RowBox[{"{", "\n", "\t", 
    RowBox[{
     RowBox[{"p1", " ", "==", " ", 
      RowBox[{"c1", " ", "+", " ", 
       RowBox[{"Zc1", " ", "q1"}]}]}], ",", "\n", "\t", 
     RowBox[{"p2", " ", "==", " ", 
      RowBox[{"c2", " ", "+", " ", 
       RowBox[{"Zc2", " ", "q2"}]}]}], ",", "\n", "\t", 
     RowBox[{"fmp", " ", "==", " ", 
      RowBox[{"cmp", " ", "+", " ", 
       RowBox[{"Zcmp", " ", "vmp"}]}]}]}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.571904107252022*^9, 3.571904107252022*^9}},
 FontWeight->"Plain"],

Cell["The  vector the system variables", "Text",
 CellChangeTimes->{{3.5719040252426777`*^9, 3.571904040405905*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", "=", " ", 
   RowBox[{"{", 
    RowBox[{
    "xmp", ",", "vmp", ",", "q1", ",", "q2", ",", "p1", ",", "p2", ",", 
     "fmp"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.5719041179696407`*^9, 3.5719041179696407`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"variable2Limits", "=", 
   RowBox[{"{", 
    RowBox[{"{", 
     RowBox[{"thetamr", ",", "wmr", ",", "thetamin", ",", "thetamax"}], "}"}],
     "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.521781710359375*^9, 3.521781715921875*^9}, 
   3.521781911703125*^9, {3.521782089203125*^9, 3.521782090109375*^9}, {
   3.52178477725*^9, 3.521784790515625*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"xp", "==", "xpe"}], ",", "\[IndentingNewLine]", 
     RowBox[{"vp", "==", "vpe"}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.521784881984375*^9, 3.5217849346875*^9}, {
  3.5217850951875*^9, 3.5217850970625*^9}, {3.5719040456319137`*^9, 
  3.5719040637591457`*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input"],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Power", "::", "infy"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Infinite expression \[NoBreak]\\!\\(1\\/0\\)\[NoBreak] \
encountered. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/infy\\\", ButtonNote -> \
\\\"Power::infy\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.577611869000755*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Power", "::", "infy"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Infinite expression \[NoBreak]\\!\\(1\\/0\\)\[NoBreak] \
encountered. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/infy\\\", ButtonNote -> \
\\\"Power::infy\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.577611869002755*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Power", "::", "infy"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Infinite expression \[NoBreak]\\!\\(1\\/0\\)\[NoBreak] \
encountered. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/infy\\\", ButtonNote -> \
\\\"Power::infy\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.577611869003755*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Power :: \
infy\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.577611869004755*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partw"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part \[NoBreak]\\!\\(6\\)\[NoBreak] of \
\[NoBreak]\\!\\(MechanicRotQnode[\\(\\(mr, 0.`, \\\"mechanical rot. \
node\\\"\\)\\)]\\)\[NoBreak] does not exist. \\!\\(\\*ButtonBox[\\\"\
\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partw\\\", ButtonNote -> \
\\\"Part::partw\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.5776118690067554`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partw"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part \[NoBreak]\\!\\(6\\)\[NoBreak] of \
\[NoBreak]\\!\\(MechanicRotQnode[\\(\\(mr, 0.`, \\\"mechanical rot. \
node\\\"\\)\\)]\\)\[NoBreak] does not exist. \\!\\(\\*ButtonBox[\\\"\
\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partw\\\", ButtonNote -> \
\\\"Part::partw\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.5776118690077553`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partw"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part \[NoBreak]\\!\\(6\\)\[NoBreak] of \
\[NoBreak]\\!\\(MechanicRotQnode[\\(\\(mr, 0.`, \\\"mechanical rot. \
node\\\"\\)\\)]\\)\[NoBreak] does not exist. \\!\\(\\*ButtonBox[\\\"\
\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partw\\\", ButtonNote -> \
\\\"Part::partw\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.5776118690087557`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Part :: \
partw\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.5776118690097556`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\[LeftSkeleton] 1 \[RightSkeleton]\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicPistonJload.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicPistonJload.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.25`\\)\\), \\(\\(\\\"a\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.5`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P2\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \
\\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0.333333\\\"\\)\\), \\(\\(\\\"y\\\" \
\[Rule] \\\"1\\\"\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"90\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"xp\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0.666667\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \\\"1\
\\\"\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"90\\\"\\)\\), \\(\\(\\\"name\\\" \
\[Rule] \\\"vp\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\
\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \\(\\(\
\[LeftSkeleton] 1 \[RightSkeleton]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \
\\(\\({\\(\\(\\\"isopath\\\" \[Rule] \\\"HydraulicPistonJload.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicPistonJload.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\
\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.25`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P1\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.5`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(\[LeftSkeleton] 1 \[RightSkeleton]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\
\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0.666667\\\"\\)\\), \
\\(\\(\\\"y\\\" \[Rule] \\\"1\\\"\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"90\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"vp\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\
\[NoBreak] is not a list of contents. The third item in an XMLElement must be \
a list of contents, even if it is an empty list. \\!\\(\\*ButtonBox[\\\"\
\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.577611869030758*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.5776118690317583`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.25`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.25`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.5776118690327578`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.577611869033758*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.5`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.5`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.5776118690357585`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.5776118690367584`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.5776118690367584`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.75`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.75`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.5776118690377584`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.522605229796875*^9, 3.522605923453125*^9, 
   3.522606220796875*^9, 3.522606300734375*^9, 3.524842633609375*^9, 
   3.5331539229375*^9, 3.533154017703125*^9, 3.5332733936893187`*^9, 
   3.538722954447625*^9, 3.538977595771036*^9, 3.554715623123418*^9, 
   3.5719772241649594`*^9, 3.575649104242467*^9, 3.5756518577617164`*^9, 
   3.5757161678779745`*^9, 3.5757162219323215`*^9, 3.5757266128569098`*^9, 
   3.5757721893265285`*^9, 3.5757724093855934`*^9, 3.5757725423134265`*^9, 
   3.575772640727646*^9, 3.5758602672290936`*^9, 3.576214805859736*^9, {
   3.576214845742736*^9, 3.5762148703357363`*^9}, 3.576215464569604*^9, 
   3.576215579925138*^9, 3.5762159276759095`*^9, 3.576216008095951*^9, 
   3.576216064301571*^9, 3.576216163809739*^9, 3.5762168811892605`*^9, 
   3.5762169667828193`*^9, 3.57621702219536*^9, 3.5762171429184313`*^9, {
   3.576217204192558*^9, 3.5762172319883375`*^9}, 3.5762412340205793`*^9, 
   3.576241310950923*^9, {3.5762413822704935`*^9, 3.5762414043757324`*^9}, 
   3.576241479989065*^9, 3.5762415576616015`*^9, 3.576921317811641*^9, 
   3.5776118690387583`*^9}],

Cell[BoxData["\<\"HydraulicPistonJload.xml\"\>"], "Output",
 CellChangeTimes->{
  3.533153923171875*^9, 3.533154017890625*^9, 3.533273393767438*^9, 
   3.5387229544945*^9, 3.538977595833536*^9, 3.5547156231546583`*^9, 
   3.5719772242117605`*^9, 3.5756491042584677`*^9, 3.5756518578167195`*^9, 
   3.5757161678935747`*^9, 3.575716221963522*^9, 3.57572661290371*^9, 
   3.5757721894045286`*^9, 3.5757724094635935`*^9, 3.5757725423602266`*^9, 
   3.575772640774446*^9, 3.5758602672602777`*^9, 3.576214805943736*^9, {
   3.576214845799736*^9, 3.576214870412736*^9}, 3.576215464641611*^9, 
   3.5762155800001454`*^9, 3.5762159277669187`*^9, 3.576216008176959*^9, 
   3.576216064375578*^9, 3.576216163885739*^9, 3.576216881259268*^9, 
   3.5762169668758287`*^9, 3.576217022274368*^9, 3.576217143032442*^9, {
   3.5762172042765665`*^9, 3.576217232065345*^9}, 3.5762412340517797`*^9, 
   3.5762413109977226`*^9, {3.576241382301694*^9, 3.5762414044069324`*^9}, 
   3.5762414800358653`*^9, 3.5762415577084017`*^9, 3.5769213178836412`*^9, 
   3.5776118690397587`*^9}]
}, Open  ]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData[StyleBox["MotorJload",
 FontFamily->"System"]], "Section",
 Evaluatable->False,
 CellChangeTimes->{{3.52488616965088*^9, 3.5248861799318666`*^9}, {
  3.577956172776149*^9, 3.5779561799815607`*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<MotorJload\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"brief", "=", "\"\<This is a motor with an inertia load\>\""}], 
  ";"}], "\n", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.5137112151875*^9, 3.513711217109375*^9}, {
   3.51378596903125*^9, 3.513785980671875*^9}, 3.515394539753217*^9, {
   3.515775693875*^9, 3.5157757050625*^9}, {3.517048046727305*^9, 
   3.51704806093043*^9}, 3.51707206725*^9, {3.5176530686834764`*^9, 
   3.51765311057437*^9}, {3.517673126703125*^9, 3.517673126796875*^9}, {
   3.5177214423487377`*^9, 3.517721453114225*^9}, {3.5177222281793466`*^9, 
   3.517722236008023*^9}, {3.5209603293125*^9, 3.520960329578125*^9}, 
   3.521782180515625*^9, {3.52178222675*^9, 3.521782271609375*^9}, {
   3.521782314984375*^9, 3.52178231528125*^9}, 3.5248861854161005`*^9, 
   3.5757721184092045`*^9, {3.577957012447175*^9, 3.5779570270120087`*^9}}],

Cell[CellGroupData[{

Cell["Component description", "Subsection"],

Cell["Piston with an inertia load", "Text"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Component equations", "Subsection"],

Cell["The name of the component  is stored in ComponentName.", "Text"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Variables and parameters", "Subsection"],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "  ", "=", " ", 
   RowBox[{"{", "\n", "\t", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{"Dm", ",", 
       RowBox[{"50.", " ", 
        SuperscriptBox["10", 
         RowBox[{"-", "6"}]]}], ",", "double", ",", "\"\<m3\>\"", ",", 
       "\"\<Displacement\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "Cim", ",", "0.", ",", "double", ",", "\"\<m3/(s Pa)\>\"", ",", 
       "\"\<Leak coeff.\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "Bm", ",", "0.", ",", "double", ",", "\"\<N/m/s\>\"", ",", 
       "\"\<Visc. friction coeff.\>\""}], "}"}], ",", "\n", "\t", 
     RowBox[{"{", 
      RowBox[{
      "Jm", ",", ".1", ",", "double", ",", "\"\<kg\>\"", ",", 
       "\"\<Moment of inertia\>\""}], "}"}]}], "\n", "\t", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.524850755625*^9, 3.524850755640625*^9}, {
   3.577956201851812*^9, 3.577956272255839*^9}, 3.5779573492194376`*^9, {
   3.5779654805065203`*^9, 3.5779655140924416`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<hydraulic node 1\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<hydraulic node 2\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"MechanicRotQnode", "[", 
      RowBox[{
      "m1", ",", "0.", ",", "0.", ",", "\"\<Mechanical rot.connection\>\""}], 
      "]"}]}], "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.524850747078125*^9, 3.524850747078125*^9}, {
   3.57795627770615*^9, 3.5779562880827436`*^9}, {3.5779577305582485`*^9, 
   3.577957764802208*^9}, 3.5779578544903374`*^9}]
}, Open  ]],

Cell[CellGroupData[{

Cell["The system of equations", "Subsection"],

Cell["The generated piston force", "Text"],

Cell[BoxData[
 RowBox[{
  RowBox[{"torg", " ", "=", 
   RowBox[{
    FractionBox[
     RowBox[{" ", "Dm"}], 
     RowBox[{"2", " ", "pi"}]], 
    RowBox[{"(", " ", 
     RowBox[{"p1", " ", "-", "  ", "p2"}], ")"}]}]}], ";"}]], "Input",
 CellChangeTimes->{{3.52178209578125*^9, 3.52178209959375*^9}, {
  3.577956496099642*^9, 3.5779565177508802`*^9}}],

Cell["The  vector of independent variables of the system are", "Text",
 CellChangeTimes->{{3.524850810625*^9, 3.52485083609375*^9}}],

Cell[BoxData[
 RowBox[{"systemEquationsDA", " ", ":=", " ", 
  RowBox[{"{", "\n", "\t", 
   RowBox[{
    RowBox[{
     RowBox[{
      RowBox[{"Jm", " ", 
       RowBox[{"der", "[", 
        RowBox[{"der", "[", "thetam1", "]"}], "]"}]}], " ", "+", " ", 
      RowBox[{
       RowBox[{"(", "Bm", ")"}], " ", "wm1"}]}], "  ", "==", " ", 
     RowBox[{"(", 
      RowBox[{"torg", " ", "-", " ", "torm1"}], ")"}]}], ",", "\n", "\t", 
    RowBox[{
     RowBox[{
      RowBox[{"Jm", " ", 
       RowBox[{"der", "[", "wm1", "]"}]}], " ", "+", " ", 
      RowBox[{
       RowBox[{"(", "Bm", ")"}], " ", "wm1"}]}], "  ", "==", " ", 
     RowBox[{"(", 
      RowBox[{"torg", " ", "-", " ", "torm1"}], ")"}]}], ",", "\n", "\t", 
    RowBox[{"q1", " ", "\[Equal]", 
     RowBox[{"-", " ", 
      RowBox[{"(", 
       RowBox[{
        RowBox[{
         FractionBox["Dm", 
          RowBox[{"2", " ", "pi"}]], " ", "wm1"}], " ", "+", " ", 
        RowBox[{"Cim", "*", 
         RowBox[{"(", 
          RowBox[{"p1", "-", "p2"}], ")"}]}]}], ")"}]}]}]}], 
   "\[IndentingNewLine]", "\t", "}"}]}]], "Input",
 CellChangeTimes->{{3.524850724265625*^9, 3.524850724265625*^9}, {
   3.571903224566633*^9, 3.571903236734655*^9}, {3.5779562974972825`*^9, 
   3.577956423703501*^9}, {3.57795648347992*^9, 3.5779564933454847`*^9}, {
   3.577956816134947*^9, 3.5779568302647552`*^9}, {3.577957767610368*^9, 
   3.5779577781419706`*^9}, 3.577957863609859*^9}],

Cell["The boundarys", "Text"],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", " ", "=", " ", 
   RowBox[{"{", "\n", "\t", 
    RowBox[{
     RowBox[{"p1", " ", "==", " ", 
      RowBox[{"c1e", " ", "+", " ", 
       RowBox[{"Zc1e", " ", "q1"}]}]}], ",", "\n", "\t", 
     RowBox[{"p2", " ", "==", " ", 
      RowBox[{"c2e", " ", "+", " ", 
       RowBox[{"Zc2e", " ", "q2"}]}]}], ",", "\n", "\t", 
     RowBox[{"torm1", " ", "==", " ", 
      RowBox[{"cm1", " ", "+", " ", 
       RowBox[{"Zcm1", " ", "wm1"}]}]}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.52485078196875*^9, 3.52485078196875*^9}, {
   3.5719029765417976`*^9, 3.571902992984226*^9}, {3.5779564425205774`*^9, 
   3.577956443148613*^9}, {3.577956840335331*^9, 3.577956842188437*^9}, {
   3.577957783064252*^9, 3.5779577871134834`*^9}, 3.577957893385562*^9, {
   3.577963667558826*^9, 3.5779636729951367`*^9}}],

Cell[CellGroupData[{

Cell[BoxData["systemBoundaryEquations"], "Input"],

Cell[BoxData[
 RowBox[{"{", 
  RowBox[{
   RowBox[{"p1", "\[Equal]", 
    RowBox[{
     RowBox[{"c1", " ", 
      RowBox[{"onPositive", "[", "p1", "]"}]}], "+", 
     RowBox[{"q1", " ", "Zc1", " ", 
      RowBox[{"onPositive", "[", "p1", "]"}]}]}]}], ",", 
   RowBox[{"p2", "\[Equal]", 
    RowBox[{
     RowBox[{"c2", " ", 
      RowBox[{"onPositive", "[", "p2", "]"}]}], "+", 
     RowBox[{"q2", " ", "Zc2", " ", 
      RowBox[{"onPositive", "[", "p2", "]"}]}]}]}], ",", 
   RowBox[{"torm1", "\[Equal]", 
    RowBox[{"cm1", "+", 
     RowBox[{"wm1", " ", "Zcm1"}]}]}]}], "}"}]], "Output",
 CellChangeTimes->{3.5779639625847006`*^9, 3.577964045752457*^9, 
  3.57796453830863*^9, 3.577964617549162*^9, 3.5779652415638537`*^9}]
}, Open  ]],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", "=", " ", 
   RowBox[{"{", 
    RowBox[{
    "thetam1", ",", "wm1", ",", "q1", ",", "p1", ",", "p2", ",", "torm1"}], 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.524850716875*^9, 3.524850716875*^9}, {
   3.577956431479946*^9, 3.5779564393723974`*^9}, {3.577956859515428*^9, 
   3.5779568640126853`*^9}, {3.5779577901476574`*^9, 3.577957792222776*^9}, 
   3.5779578730333977`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{"q2", "\[Equal]", 
     RowBox[{"-", "q1"}]}], "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.577956890459198*^9, 3.5779569714248285`*^9}}],

Cell[CellGroupData[{

Cell[BoxData["jacob"], "Input",
 CellChangeTimes->{{3.5779640898639803`*^9, 3.5779640912510595`*^9}}],

Cell[BoxData[
 RowBox[{"{", 
  RowBox[{
   RowBox[{"{", 
    RowBox[{"1", ",", 
     FractionBox[
      RowBox[{"0.25`6.", " ", "Bm", " ", 
       SuperscriptBox["mTimestep", "2"]}], "Jm"], ",", "0", ",", 
     RowBox[{"-", 
      FractionBox[
       RowBox[{"0.03978873577297383394222094084312857385`6.", " ", "Dm", " ", 
        SuperscriptBox["mTimestep", "2"]}], "Jm"]}], ",", 
     FractionBox[
      RowBox[{"0.03978873577297383394222094084312857385`6.", " ", "Dm", " ", 
       SuperscriptBox["mTimestep", "2"]}], "Jm"], ",", 
     FractionBox[
      RowBox[{"0.25`6.", " ", 
       SuperscriptBox["mTimestep", "2"]}], "Jm"]}], "}"}], ",", 
   RowBox[{"{", 
    RowBox[{"0", ",", "1", ",", "0", ",", 
     RowBox[{"-", 
      FractionBox[
       RowBox[{
       "0.15915494309189533576888376337251429538`6.", " ", "Dm", " ", 
        "mTimestep"}], 
       RowBox[{
        RowBox[{"2.`6.", " ", "Jm"}], "+", 
        RowBox[{"Bm", " ", "mTimestep"}]}]]}], ",", 
     FractionBox[
      RowBox[{
      "0.15915494309189533576888376337251429538`6.", " ", "Dm", " ", 
       "mTimestep"}], 
      RowBox[{
       RowBox[{"2.`6.", " ", "Jm"}], "+", 
       RowBox[{"Bm", " ", "mTimestep"}]}]], ",", 
     FractionBox["mTimestep", 
      RowBox[{
       RowBox[{"2.`6.", " ", "Jm"}], "+", 
       RowBox[{"Bm", " ", "mTimestep"}]}]]}], "}"}], ",", 
   RowBox[{"{", 
    RowBox[{"0", ",", 
     RowBox[{"0.15915494309189533576888376337251429538`6.", " ", "Dm"}], ",", 
     "1", ",", "Cim", ",", 
     RowBox[{
      RowBox[{"-", "1.`6."}], " ", "Cim"}], ",", "0"}], "}"}], ",", 
   RowBox[{"{", 
    RowBox[{"0", ",", "0", ",", 
     RowBox[{
      RowBox[{"-", "Zc1"}], " ", 
      RowBox[{"dxLimit", "[", 
       RowBox[{
        RowBox[{
         RowBox[{"(", 
          RowBox[{"c1", "+", 
           RowBox[{"q1", " ", "Zc1"}]}], ")"}], " ", 
         RowBox[{"onPositive", "[", "p1", "]"}]}], ",", "0", ",", 
        "1000000000000"}], "]"}], " ", 
      RowBox[{"onPositive", "[", "p1", "]"}]}], ",", "1", ",", "0", ",", 
     "0"}], "}"}], ",", 
   RowBox[{"{", 
    RowBox[{"0", ",", "0", ",", "0", ",", "0", ",", "1", ",", "0"}], "}"}], 
   ",", 
   RowBox[{"{", 
    RowBox[{"0", ",", 
     RowBox[{"-", "Zcm1"}], ",", "0", ",", "0", ",", "0", ",", "1"}], "}"}]}],
   "}"}]], "Output",
 CellChangeTimes->{3.577964092063106*^9, 3.577964538397635*^9, 
  3.577964617651168*^9, 3.5779652416048565`*^9}]
}, Open  ]],

Cell["Limitatons", "Text",
 CellChangeTimes->{{3.524850848515625*^9, 3.524850857984375*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input"],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.577965241634858*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 2\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.577965241637858*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(2, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.577965241650859*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Part :: \
partd\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.577965241653859*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \\\"HydraulicMotorJload\\\"\\)\\), \
\\(\\(\\\"displayname\\\" \[Rule] \\\"HydraulicMotorJload\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicMotorJload.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicMotorJload.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.25`\\)\\), \\(\\(\\\"a\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.5`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P2\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.75`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"Pm1\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\
\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\\"version\\\" \[Rule] \\\"0.1\\\"}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\\\"typename\\\" \
\[Rule] \\\"HydraulicMotorJload\\\"\\)\\), \\(\\(\\\"displayname\\\" \[Rule] \
\\\"HydraulicMotorJload\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicMotorJload.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicMotorJload.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.25`\\)\\), \\(\\(\\\"a\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\
\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.5`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P2\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.75`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"Pm1\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\
\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\[NoBreak] is not a list \
of contents. The third item in an XMLElement must be a list of contents, even \
if it is an empty list. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.57796524167286*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.57796524167486*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.25`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.25`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.5779652416758604`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.5779652416778603`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.5`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.5`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.5779652416788607`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.5779652416808605`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.5779652416828604`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.75`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.75`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.577965241683861*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.52178239371875*^9, {3.521782517234375*^9, 3.52178255590625*^9}, 
   3.521782620046875*^9, 3.5217826584375*^9, 3.521783081359375*^9, 
   3.52178326625*^9, 3.52241095696875*^9, 3.52260522925*^9, 
   3.52260592309375*^9, 3.522606220546875*^9, 3.52260630040625*^9, 
   3.524842633234375*^9, 3.524884318912717*^9, 3.53315392134375*^9, 
   3.533154016828125*^9, 3.533273393314345*^9, 3.538722953947625*^9, 
   3.538977595474161*^9, 3.5547156221393323`*^9, 3.5719772239621553`*^9, 
   3.571987620433298*^9, 3.575649103982452*^9, 3.575651857559705*^9, 
   3.575716167581573*^9, 3.57571622171392*^9, 3.5757266126229095`*^9, 
   3.575772189030128*^9, 3.575772409120393*^9, 3.575772541939026*^9, 
   3.5757726405092454`*^9, 3.575860266917245*^9, 3.576214805603736*^9, {
   3.576214845496736*^9, 3.576214870088736*^9}, 3.576215464314578*^9, 
   3.576215579678113*^9, 3.576215927257868*^9, 3.576216007760917*^9, 
   3.576216063886529*^9, 3.576216163484739*^9, 3.5762168807562175`*^9, 
   3.576216966299771*^9, 3.576217021806321*^9, 3.57621714250739*^9, {
   3.5762172037475133`*^9, 3.576217231576296*^9}, 3.576241233770979*^9, 
   3.5762413107325225`*^9, {3.5762413820364933`*^9, 3.576241404141732*^9}, 
   3.5762414797706647`*^9, 3.576241557427601*^9, 3.576921317502641*^9, 
   3.577611868744729*^9, 3.5779570339204035`*^9, 3.577957251512849*^9, 
   3.577957353579687*^9, 3.577957810251807*^9, {3.577957875913563*^9, 
   3.5779578961017175`*^9}, 3.5779637096862354`*^9, 3.577964045924467*^9, 
   3.577964538432637*^9, 3.5779646176941705`*^9, 3.5779652416858606`*^9}],

Cell[BoxData["\<\"HydraulicMotorJload.xml\"\>"], "Output",
 CellChangeTimes->{
  3.533153921609375*^9, 3.533154017109375*^9, 3.533273393470584*^9, 
   3.5387229539945*^9, 3.538977595552286*^9, 3.5547156222174344`*^9, 
   3.5719772239777555`*^9, 3.571987620511299*^9, 3.5756491040354548`*^9, 
   3.5756518576257086`*^9, 3.575716167612773*^9, 3.5757162217763205`*^9, 
   3.5757266126853094`*^9, 3.575772189123728*^9, 3.575772409198393*^9, 
   3.575772542017026*^9, 3.5757726405560455`*^9, 3.5758602669796147`*^9, 
   3.576214805676736*^9, {3.576214845575736*^9, 3.576214870169736*^9}, 
   3.576215464386585*^9, 3.57621557974712*^9, 3.5762159273578777`*^9, 
   3.5762160078469257`*^9, 3.5762160639805384`*^9, 3.576216163575739*^9, 
   3.5762168808642282`*^9, 3.5762169664337845`*^9, 3.5762170219173317`*^9, 
   3.5762171426474037`*^9, {3.5762172038565245`*^9, 3.576217231678306*^9}, 
   3.5762412338177795`*^9, 3.576241310810522*^9, {3.576241382098893*^9, 
   3.5762414042197323`*^9}, 3.576241479833065*^9, 3.5762415575056014`*^9, 
   3.5769213175916414`*^9, 3.5776118687957344`*^9, 3.5779570344494333`*^9, 
   3.577957251643856*^9, 3.5779573536606913`*^9, 3.5779578103258114`*^9, {
   3.577957875978566*^9, 3.5779578961737213`*^9}, 3.577963709744239*^9, 
   3.5779640464434967`*^9, 3.577964538498641*^9, 3.577964617756174*^9, 
   3.5779652416878605`*^9}]
}, Open  ]]
}, Open  ]]
}, Open  ]],

Cell[CellGroupData[{

Cell["Valvistor", "Section",
 CellChangeTimes->{{3.4785828348125*^9, 3.47858284740625*^9}, 
   3.47867904165625*^9, {3.5580919275581646`*^9, 3.558091928870051*^9}, {
   3.5608590099091244`*^9, 3.560859013304006*^9}, 3.5769211516696415`*^9}],

Cell[BoxData[""], "Input",
 CellChangeTimes->{{3.5611223601906953`*^9, 3.561122401359894*^9}, 
   3.5772037951647787`*^9}],

Cell[CellGroupData[{

Cell["Resetting parameters", "Subsection",
 PageWidth->WindowWidth],

Cell[BoxData[{
 RowBox[{
  RowBox[{"nodeConnections", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"constantParameters", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"variableLimits", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"variable2Limits", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"localExpressions", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"expressions", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"systemEquationsDa", "=."}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"boundaryEquations", "=."}], ";"}]}], "Input",
 CellChangeTimes->{{3.50416099565625*^9, 3.504161071125*^9}, {
  3.504171390828125*^9, 3.504171394640625*^9}}]
}, Open  ]],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<Valvistor\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"brief", "=", "\"\<An Valvistor\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{
  "author", "=", 
   "\"\<Bj\[ODoubleDot]rn Eriksson <bjorn.eriksson@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.507887022343302*^9, 
   3.507887057967846*^9}, {3.5078871702320337`*^9, 3.507887175028847*^9}, {
   3.5158208831437864`*^9, 3.51582092036206*^9}, {3.5158209798300486`*^9, 
   3.51582099300181*^9}, {3.522605661421875*^9, 3.522605661625*^9}, {
   3.558091951270996*^9, 3.5580919677334027`*^9}, 3.558098390627185*^9, {
   3.560832313741742*^9, 3.5608323241832905`*^9}, {3.560859025271214*^9, 
   3.5608590320910206`*^9}, {3.576921179852641*^9, 3.576921188898641*^9}, 
   3.5772042546250587`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", "\t", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Side port\>\""}], "]"}], ",", 
     "\[IndentingNewLine]", "\t", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Control chamber port\>\""}], 
      "]"}], ",", "\[IndentingNewLine]", "\t", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"3", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Nose port\>\""}], "]"}]}], 
    "}"}]}], ";"}]], "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.},
 CellChangeTimes->{{3.4779981058619356`*^9, 3.4779981542683554`*^9}, 
   3.4780017782035847`*^9, {3.478002203430644*^9, 3.478002217153696*^9}, {
   3.478002277203772*^9, 3.4780023021490927`*^9}, {3.4780026209521627`*^9, 
   3.478002664340765*^9}, {3.478021796078125*^9, 3.478021842203125*^9}, {
   3.478021885296875*^9, 3.47802199571875*^9}, {3.47802539628125*^9, 
   3.478025479125*^9}, {3.478026054375*^9, 3.47802606034375*^9}, {
   3.47818056640625*^9, 3.47818064359375*^9}, {3.478184752578125*^9, 
   3.478184788859375*^9}, {3.4781848254375*^9, 3.47818487890625*^9}, {
   3.47818496809375*^9, 3.478184980140625*^9}, {3.478189354859375*^9, 
   3.478189379078125*^9}, {3.478679541453125*^9, 3.478679542*^9}, 
   3.47868324640625*^9, 3.478683514703125*^9, {3.4807602098503075`*^9, 
   3.480760210147073*^9}, {3.480760285603793*^9, 3.4807602892909627`*^9}, 
   3.480760331584048*^9, {3.498888542331812*^9, 3.498888576862841*^9}, {
   3.499083790077364*^9, 3.4990838046238666`*^9}, {3.503902471203904*^9, 
   3.503902488249798*^9}, {3.5039965507621307`*^9, 3.503996553952038*^9}, {
   3.522605447421875*^9, 3.522605449140625*^9}, {3.5580919922574015`*^9, 
   3.5580920322436333`*^9}, {3.558092454706993*^9, 3.5580924620986233`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{"w", ",", 
       RowBox[{"1.5", "*", 
        RowBox[{"10", "^", 
         RowBox[{"-", "3"}]}]}], ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Slot width\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{"x0", ",", 
       RowBox[{"1.0", "*", 
        RowBox[{"10", "^", 
         RowBox[{"-", "4"}]}]}], ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Underlap\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{"Betae", ",", 
       RowBox[{"1.0", "*", 
        RowBox[{"10", "^", 
         RowBox[{"+", "9"}]}]}], ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Bulk modulus\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Rho", ",", "890.0", ",", "double", ",", "\"\<kg/m3\>\"", ",", 
       "\"\<Oil density\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{"mass", ",", 
       RowBox[{"1.0", "*", 
        RowBox[{"10", "^", 
         RowBox[{"-", "1"}]}]}], ",", "double", ",", "\"\<kg\>\"", ",", 
       "\"\<Mass\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{"bm", ",", 
       RowBox[{"1.0", "*", 
        RowBox[{"10", "^", 
         RowBox[{"+", "1"}]}]}], ",", "double", ",", "\"\<Ns/m\>\"", ",", 
       "\"\<Friction\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{"km", ",", 
       RowBox[{"1.0", "*", 
        RowBox[{"10", "^", 
         RowBox[{"+", "0"}]}]}], ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Spring const.\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{"Vc", ",", 
       RowBox[{"1.0", "*", 
        RowBox[{"10", "^", 
         RowBox[{"-", "4"}]}]}], ",", "double", ",", "\"\<m3\>\"", ",", 
       "\"\<Volume\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{"dc", ",", 
       RowBox[{"36.0", "*", 
        RowBox[{"10", "^", 
         RowBox[{"-", "3"}]}]}], ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Large poppet diam\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{"dn", ",", 
       RowBox[{"25.45584412", "*", 
        RowBox[{"10", "^", 
         RowBox[{"-", "3"}]}]}], ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Small poppet diam\>\""}], "}"}]}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.5039965585179834`*^9, 3.503996561692254*^9}, {
   3.522605551890625*^9, 3.522605566234375*^9}, {3.5580920989570312`*^9, 
   3.5580921734603662`*^9}, {3.5580922034722557`*^9, 3.558092213817131*^9}, {
   3.5580929573001785`*^9, 3.5580929803733563`*^9}, {3.560859076104308*^9, 
   3.560859121459526*^9}, {3.5608591919709167`*^9, 3.5608591930224285`*^9}, {
   3.5608592282530875`*^9, 3.5608592629229403`*^9}, {3.5608602675475197`*^9, 
   3.5608603256610827`*^9}, {3.5608605703907366`*^9, 3.560860570821356*^9}, {
   3.561107097597519*^9, 3.561107145406265*^9}, {3.561107177862935*^9, 
   3.561107207175084*^9}, 3.5611193637846274`*^9, {3.5611201499496994`*^9, 
   3.5611201880645056`*^9}, {3.5611204779662848`*^9, 3.561120485196682*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"outputVariables", "  ", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "xv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Poppet pos\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "vv", ",", "0.", ",", "double", ",", "\"\<m/s\>\"", ",", 
       "\"\<Poppet speed\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "qsc", ",", "0.", ",", "double", ",", "\"\<m3/s\>\"", ",", 
       "\"\<Slot flow\>\""}], "}"}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.54953165409375*^9, 3.549531724296875*^9}, {
   3.5580971176976533`*^9, 3.558097161378935*^9}, 3.558170817915758*^9, 
   3.560859225479099*^9, {3.5610944116894474`*^9, 3.56109442398713*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", "=", 
   RowBox[{"{", 
    RowBox[{
    "q3", ",", "q1", ",", "qsc", ",", "q2", ",", "xv", ",", "p1", ",", "p2", 
     ",", "p3"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{
  3.50416094853125*^9, {3.558092250658841*^9, 3.558092256176776*^9}, {
   3.5580929975267563`*^9, 3.558092997847217*^9}, {3.558095005774598*^9, 
   3.558095006946283*^9}, 3.558096286748407*^9, {3.5580969987508163`*^9, 
   3.558097001014071*^9}, {3.558153432402919*^9, 3.5581534797510023`*^9}, {
   3.558153607449967*^9, 3.558153610113797*^9}, {3.558153663426468*^9, 
   3.558153666611047*^9}, 3.5581708148613663`*^9, {3.560781778635985*^9, 
   3.560781783402839*^9}, {3.5608581773246093`*^9, 3.56085818259678*^9}, {
   3.5608590479137726`*^9, 3.560859052610526*^9}, {3.5608603698346014`*^9, 
   3.5608603706657963`*^9}, {3.560860400999414*^9, 3.56086040390359*^9}, {
   3.561094493957743*^9, 3.5610944942381463`*^9}, {3.561116901060821*^9, 
   3.561116901531498*^9}, {3.561117312943096*^9, 3.561117315456711*^9}, {
   3.561117388634589*^9, 3.561117390947915*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"localExpressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"Cc", "==", 
      FractionBox["Vc", "Betae"]}], ",", "\[IndentingNewLine]", 
     RowBox[{"Ac", "==", 
      FractionBox[
       RowBox[{"pi", " ", 
        SuperscriptBox["dc", "2"]}], "4"]}], ",", "\[IndentingNewLine]", 
     RowBox[{"As", "==", 
      FractionBox[
       RowBox[{"pi", " ", 
        RowBox[{"(", 
         RowBox[{
          SuperscriptBox["dc", "2"], "-", 
          SuperscriptBox["dn", "2"]}], ")"}]}], "4"]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"An", "==", 
      FractionBox[
       RowBox[{"pi", " ", 
        RowBox[{"(", 
         SuperscriptBox["dn", "2"], ")"}]}], "4"]}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.483027001578125*^9, 3.483027021109375*^9}, {
   3.4873877137123394`*^9, 3.487387727322237*^9}, 3.4988885288318987`*^9, {
   3.503914893406355*^9, 3.50391490070323*^9}, {3.50391509367198*^9, 
   3.503915095406355*^9}, {3.525772523916875*^9, 3.525772528510625*^9}, {
   3.534756520505298*^9, 3.534756559181628*^9}, {3.534756692025055*^9, 
   3.534756695744233*^9}, {3.5580926323249435`*^9, 3.5580927195375547`*^9}, {
   3.5580927532247295`*^9, 3.5580927679759407`*^9}, {3.5580929104934893`*^9, 
   3.558092938866995*^9}, {3.5580929853893037`*^9, 3.558093137360446*^9}, {
   3.5580950202554207`*^9, 3.558095100201414*^9}, {3.5580962896225395`*^9, 
   3.558096295300705*^9}, 3.558096996357375*^9, {3.5580976645170617`*^9, 
   3.5580976657488327`*^9}, {3.5580978412451916`*^9, 
   3.5580978479836154`*^9}, {3.5580982212542887`*^9, 3.558098245238513*^9}, {
   3.5608591714213676`*^9, 3.5608592233860893`*^9}, {3.5757107546048045`*^9, 
   3.575710754748819*^9}, {3.5757109848688283`*^9, 3.5757110075310946`*^9}, 
   3.575738639653321*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemEquationsDA", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{
      RowBox[{"An", " ", 
       RowBox[{"Der", "[", "xv", "]"}]}], "==", 
      RowBox[{
       RowBox[{"0.67", "pi", " ", "dn", " ", "xv", " ", 
        RowBox[{"Sqrt", "[", 
         RowBox[{"2", "/", "Rho"}], "]"}], 
        RowBox[{"signedSquareL", "[", 
         RowBox[{
          RowBox[{"p1", "-", "p3"}], ",", "10000."}], "]"}]}], "-", "q3"}]}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"q1", "\[Equal]", 
      RowBox[{
       RowBox[{"-", "q2"}], "-", "q3"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"qsc", "==", 
      RowBox[{"0.67", "w", 
       RowBox[{"(", 
        RowBox[{"x0", "+", "xv"}], ")"}], " ", 
       RowBox[{"Sqrt", "[", 
        RowBox[{"2", "/", "Rho"}], "]"}], 
       RowBox[{"signedSquareL", "[", 
        RowBox[{
         RowBox[{"p1", "-", "p2"}], ",", "10000."}], "]"}]}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"q2", "==", 
      RowBox[{"qsc", "-", 
       RowBox[{"Ac", " ", 
        RowBox[{"Der", "[", "xv", "]"}]}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{
      RowBox[{"km", " ", "xv"}], "==", 
      RowBox[{
       RowBox[{"An", " ", "p3"}], "+", 
       RowBox[{"As", " ", "p1"}], "-", 
       RowBox[{"Ac", " ", "p2"}], "-", 
       RowBox[{"mass", " ", 
        RowBox[{"Der", "[", 
         RowBox[{"Der", "[", "xv", "]"}], "]"}]}], "-", 
       RowBox[{"bm", " ", 
        RowBox[{"Der", "[", "xv", "]"}]}]}]}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.478679350421875*^9, 3.4786793594375*^9}, {
   3.47867939090625*^9, 3.478679416*^9}, {3.52260570715625*^9, 
   3.5226057146875*^9}, {3.5580924707510653`*^9, 3.558092503862033*^9}, 
   3.558093159111723*^9, {3.558093877413025*^9, 3.5580938967695932`*^9}, {
   3.558093936345235*^9, 3.5580939390391083`*^9}, {3.558094928138816*^9, 
   3.558095001618622*^9}, {3.5580951018237467`*^9, 3.558095147083185*^9}, {
   3.558096490787132*^9, 3.5580964913279095`*^9}, 3.5580973650784593`*^9, {
   3.558097414041571*^9, 3.5580974325969872`*^9}, {3.558097770726321*^9, 
   3.5580977709165945`*^9}, 3.558097805705353*^9, {3.558097878456167*^9, 
   3.558097879727996*^9}, {3.5580979386441545`*^9, 3.5580979560091243`*^9}, {
   3.558097991685433*^9, 3.5580980240212617`*^9}, {3.5580982265919642`*^9, 
   3.558098239269931*^9}, 3.5581542694155736`*^9, {3.5581568832056637`*^9, 
   3.5581569072829914`*^9}, {3.5581707997696657`*^9, 
   3.5581708080115166`*^9}, {3.5607812490853543`*^9, 
   3.5607812526504807`*^9}, {3.5608581300025883`*^9, 3.560858169980073*^9}, {
   3.560859359802246*^9, 3.5608593983176284`*^9}, {3.560860160703886*^9, 
   3.560860201642753*^9}, {3.5608602349406333`*^9, 3.560860256902212*^9}, {
   3.5608604100824747`*^9, 3.56086041141439*^9}, {3.5608605793536243`*^9, 
   3.560860579794258*^9}, 3.5608606137315283`*^9, {3.5608611711700215`*^9, 
   3.5608611799226074`*^9}, {3.5608614683876457`*^9, 3.560861471051476*^9}, {
   3.5608616183415112`*^9, 3.560861620294319*^9}, {3.560861689742388*^9, 
   3.560861690563569*^9}, {3.561094313297967*^9, 3.561094328770215*^9}, {
   3.5610944306967783`*^9, 3.5610944668788056`*^9}, {3.5610955157203207`*^9, 
   3.561095532534498*^9}, {3.561097455710719*^9, 3.5610974706221604`*^9}, {
   3.561107231389903*^9, 3.5611072332726107`*^9}, 3.561108114885292*^9, {
   3.561115574305501*^9, 3.561115583869253*^9}, {3.561115689791562*^9, 
   3.561115690272253*^9}, {3.5611160468144436`*^9, 3.561116052732954*^9}, {
   3.561116531422506*^9, 3.561116532894623*^9}, {3.561116732688714*^9, 
   3.5611167405400033`*^9}, {3.561116866661357*^9, 3.561116894751749*^9}, 
   3.561116944458021*^9, {3.5611171334711266`*^9, 3.5611171372465553`*^9}, {
   3.561117224434597*^9, 3.56111722580657*^9}, {3.5611172810071745`*^9, 
   3.561117292113144*^9}, {3.561117371289648*^9, 3.56111740472773*^9}, {
   3.561117452913221*^9, 3.56111745944261*^9}, {3.5611193435955973`*^9, 
   3.561119345408203*^9}, {3.561120197648287*^9, 3.5611202135211105`*^9}, {
   3.561120454592675*^9, 3.5611204550433235`*^9}, {3.561120490354098*^9, 
   3.5611204963827667`*^9}, {3.575711038575198*^9, 3.5757111337967196`*^9}, {
   3.575711237578097*^9, 3.575711248457185*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"p1", "==", 
      RowBox[{"(", 
       RowBox[{"c1", "+", 
        RowBox[{"Zc1", " ", "q1"}]}], ")"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"p2", "==", 
      RowBox[{"(", 
       RowBox[{"c2", "+", 
        RowBox[{"Zc2", " ", "q2"}]}], ")"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"p3", "==", 
      RowBox[{"(", 
       RowBox[{"c3", "+", 
        RowBox[{"Zc3", " ", "q3"}]}], ")"}]}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.478679428921875*^9, 3.478679481265625*^9}, {
  3.5158210577049356`*^9, 3.5158210581736856`*^9}, {3.5159004761612453`*^9, 
  3.5159004765987425`*^9}, {3.5580951618754573`*^9, 3.5580951720195694`*^9}, {
  3.575711137317072*^9, 3.5757111774160814`*^9}, {3.5757112161539545`*^9, 
  3.575711223128652*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"variableLimits", "=", 
   RowBox[{"{", 
    RowBox[{"{", 
     RowBox[{"xv", ",", "0.", ",", "0.01"}], "}"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.5581708388746305`*^9, 3.5581708425198717`*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input",
 CellChangeTimes->{3.5039025691670113`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.5776118692857833`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(4, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.577611869286783*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(5, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.5776118693087854`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Part :: \
partd\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.577611869310786*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \\\"HydraulicValvistor\\\"\\)\\), \
\\(\\(\\\"displayname\\\" \[Rule] \\\"HydraulicValvistor\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicValvistor.svg\\\"\\)\\), \\(\\(\\\"iconrotation\\\" \
\[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicValvistor.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\
\\(XMLElement[\\(\\(\[LeftSkeleton] 1 \[RightSkeleton]\\)\\)]\\)\\)}\\)\\)\\)\
\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\(\\(\\\"\\\" \[Ellipsis] \\\"\\\"\\)\\) \[Rule] \
\\(\\(\[LeftSkeleton] 5 \[RightSkeleton]\\)\\)}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\\\"typename\\\" \
\[Rule] \\\"HydraulicValvistor\\\"\\)\\), \\(\\(\\(\\(\\\"d\\\" \[Ellipsis] \
\\\"me\\\"\\)\\) \[Rule] \\(\\(\\\"\\\" \[Ellipsis] \
\\\"\\\"\\)\\)\\)\\)}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \
\\(\\({\\(\\(\\\"isopath\\\" \[Rule] \\\"HydraulicValvistor.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicValvistor.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\
\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\({}\\)\\), \\(\\({\\(\
\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.25`\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \\(\\({}\
\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\
\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.5`\\)\\), \\(\\(\\\
\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\
\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(\[LeftSkeleton] 3 \[RightSkeleton]\
\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0.75\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \\\"1\\\"\\)\\), \\(\\(\\\
\"a\\\" \[Rule] \\\"90\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"qsc\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\
\\)\\)\\)]\\)\\)\\)\\)]\\)\[NoBreak] is not a list of contents. The third \
item in an XMLElement must be a list of contents, even if it is an empty \
list. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.5776118693347883`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.5776118693357887`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.25`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.25`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.577611869336788*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.5776118693387885`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.5`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.5`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.577611869339789*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.577611869340789*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.5776118693427887`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.75`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.75`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.5776118693427887`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.560860479602638*^9, {3.5608605893279667`*^9, 3.5608606175169716`*^9}, 
   3.560861187633695*^9, 3.5608614876152935`*^9, 3.560861623438841*^9, 
   3.5610945001766853`*^9, 3.561095547305738*^9, 3.561097480526402*^9, 
   3.561105855976907*^9, 3.561107269785113*^9, 3.5611081379784985`*^9, 
   3.561115709600045*^9, 3.561116067353978*^9, 3.5611165370806417`*^9, 
   3.561116914279829*^9, 3.5611169475524707`*^9, 3.5611171515170755`*^9, {
   3.5611172991532674`*^9, 3.561117324079109*^9}, 3.5611174092041664`*^9, 
   3.561117462877549*^9, 3.561119372066536*^9, 3.5611202271607237`*^9, 
   3.5611204595998755`*^9, 3.561120504414315*^9, 3.5611215475335617`*^9, 
   3.575716104245167*^9, 3.5769213183966413`*^9, {3.5772037804729385`*^9, 
   3.5772037826140614`*^9}, 3.577611869343789*^9}],

Cell[BoxData["\<\"HydraulicValvistor.xml\"\>"], "Output",
 CellChangeTimes->{
  3.53315391021875*^9, 3.533154006015625*^9, 3.533273390986384*^9, 
   3.538722952057*^9, 3.538977591052286*^9, 3.554715620764737*^9, 
   3.5580915988876505`*^9, 3.558095185058529*^9, 3.5580954135131607`*^9, 
   3.5580963003279333`*^9, 3.5580971707323847`*^9, 3.558097447408285*^9, 
   3.558097674441332*^9, 3.5580979105450153`*^9, 3.558097965421393*^9, 
   3.5580981227814794`*^9, 3.5580982514073834`*^9, 3.558098398939137*^9, 
   3.5581534901459494`*^9, {3.5581535287968693`*^9, 3.5581535585396376`*^9}, 
   3.5581536162125673`*^9, 3.558153692167796*^9, 3.558154212203306*^9, 
   3.558154281512969*^9, 3.5581569184991198`*^9, 3.5581708562182865`*^9, 
   3.560781336142135*^9, 3.5607817870480804`*^9, 3.560832370390006*^9, 
   3.560832588824048*^9, 3.560835415461805*^9, 3.5608581880893016`*^9, 
   3.560860434657812*^9, 3.56086048101266*^9, {3.5608605895482836`*^9, 
   3.5608606177673316`*^9}, 3.5608611878139544`*^9, 3.5608614878556395`*^9, 
   3.5608616236791863`*^9, 3.5610945006774054`*^9, 3.5610955475961556`*^9, 
   3.5610974808568773`*^9, 3.561105856427555*^9, 3.5611072702758183`*^9, 
   3.5611081382789307`*^9, 3.5611157101908946`*^9, 3.56111606765441*^9, 
   3.561116537290944*^9, 3.5611169166732707`*^9, 3.5611169480231476`*^9, 
   3.5611171519076366`*^9, {3.561117299573872*^9, 3.5611173244596562`*^9}, 
   3.5611174096448*^9, 3.5611174632480817`*^9, 3.561119372386997*^9, 
   3.5611202277315445`*^9, 3.561120459990437*^9, 3.56112050483492*^9, 
   3.5611215476937923`*^9, 3.575716104323168*^9, 3.5769213184856415`*^9, {
   3.577203780803958*^9, 3.5772037826700644`*^9}, 3.5776118693447895`*^9}]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData["systemEquations"], "Input",
 CellChangeTimes->{{3.558154216920089*^9, 3.5581542277256265`*^9}}],

Cell[BoxData[
 RowBox[{"{", 
  RowBox[{
   RowBox[{"q3", "+", 
    FractionBox[
     RowBox[{"2", " ", "An", " ", 
      RowBox[{"(", 
       RowBox[{"1", "-", "qi00"}], ")"}], " ", "xv"}], 
     RowBox[{"mTimestep", " ", 
      RowBox[{"(", 
       RowBox[{"1", "+", "qi00"}], ")"}]}]], "-", 
    RowBox[{"2.9767315685661058`", " ", "dn", " ", 
     SqrtBox[
      FractionBox["1", "Rho"]], " ", "xv", " ", 
     RowBox[{"signedSquareL", "[", 
      RowBox[{
       RowBox[{"p1", "-", "p3"}], ",", "10000.`"}], "]"}]}]}], ",", 
   RowBox[{"q1", "+", "q2", "+", "q3"}], ",", 
   RowBox[{"qsc", "-", 
    RowBox[{"0.9475230867899738`", " ", 
     SqrtBox[
      FractionBox["1", "Rho"]], " ", "w", " ", 
     RowBox[{"(", 
      RowBox[{"x0", "+", "xv"}], ")"}], " ", 
     RowBox[{"signedSquareL", "[", 
      RowBox[{
       RowBox[{"p1", "-", "p2"}], ",", "10000.`"}], "]"}]}]}], ",", 
   RowBox[{"q2", "-", "qsc", "+", 
    FractionBox[
     RowBox[{"2", " ", "Ac", " ", 
      RowBox[{"(", 
       RowBox[{"1", "-", "qi00"}], ")"}], " ", "xv"}], 
     RowBox[{"mTimestep", " ", 
      RowBox[{"(", 
       RowBox[{"1", "+", "qi00"}], ")"}]}]]}], ",", 
   RowBox[{
    RowBox[{
     RowBox[{"-", "As"}], " ", "p1"}], "+", 
    RowBox[{"Ac", " ", "p2"}], "-", 
    RowBox[{"An", " ", "p3"}], "+", 
    RowBox[{"km", " ", "xv"}], "+", 
    FractionBox[
     RowBox[{"4", " ", "mass", " ", 
      SuperscriptBox[
       RowBox[{"(", 
        RowBox[{"1", "-", "qi00"}], ")"}], "2"], " ", "xv"}], 
     RowBox[{
      SuperscriptBox["mTimestep", "2"], " ", 
      SuperscriptBox[
       RowBox[{"(", 
        RowBox[{"1", "+", "qi00"}], ")"}], "2"]}]], "+", 
    FractionBox[
     RowBox[{"2", " ", "bm", " ", 
      RowBox[{"(", 
       RowBox[{"1", "-", "qi00"}], ")"}], " ", "xv"}], 
     RowBox[{"mTimestep", " ", 
      RowBox[{"(", 
       RowBox[{"1", "+", "qi00"}], ")"}]}]]}], ",", 
   RowBox[{
    RowBox[{"-", "c1"}], "+", "p1", "-", 
    RowBox[{"q1", " ", "Zc1"}]}], ",", 
   RowBox[{
    RowBox[{"-", "c2"}], "+", "p2", "-", 
    RowBox[{"q2", " ", "Zc2"}]}], ",", 
   RowBox[{
    RowBox[{"-", "c3"}], "+", "p3", "-", 
    RowBox[{"q3", " ", "Zc3"}]}]}], "}"}]], "Output",
 CellChangeTimes->{
  3.5581542283465195`*^9, 3.5581542815329976`*^9, 3.5581569185091343`*^9, 
   3.558170856378517*^9, 3.5607813362522936`*^9, 3.560781787078124*^9, 
   3.560832370428233*^9, 3.560832588844077*^9, 3.560835415491848*^9, 
   3.5608581881289587`*^9, 3.5608604346678267`*^9, 3.560860481089771*^9, {
   3.5608605895683126`*^9, 3.5608606177973747`*^9}, 3.560861187843998*^9, 
   3.560861487885682*^9, 3.560861623699215*^9, 3.5610945007274776`*^9, 
   3.561095547626199*^9, 3.5610974808869205`*^9, 3.561105856497656*^9, 
   3.561107270406006*^9, 3.5611081383089733`*^9, 3.5611157103411107`*^9, 
   3.5611160676944675`*^9, 3.5611165373310018`*^9, 3.5611169167433715`*^9, 
   3.5611169480732193`*^9, 3.5611171519677234`*^9, {3.5611172996139297`*^9, 
   3.561117324499714*^9}, 3.561117409684858*^9, 3.5611174632881393`*^9, 
   3.561119372407026*^9, 3.5611202277716017`*^9, 3.5611204600304947`*^9, 
   3.561120504874978*^9, 3.5611215477238355`*^9, 3.5757161043543673`*^9, 
   3.5769213185306416`*^9, {3.577203780833959*^9, 3.5772037826900654`*^9}, 
   3.5776118695548105`*^9}]
}, Open  ]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell["PressureRelief2ValveG", "Section",
 CellChangeTimes->{{3.4785828348125*^9, 3.47858284740625*^9}, 
   3.47867904165625*^9, {3.483026885*^9, 3.483026890359375*^9}, 
   3.4988885288318987`*^9, {3.507886987593746*^9, 3.507887015984008*^9}, {
   3.571980272122896*^9, 3.57198027376266*^9}}],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<PressureRelief2ValveG\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{
  "brief", "=", 
   "\"\<A hydraulic pressure relief valve based on geometry\>\""}], 
  ";"}], "\n", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.5158209060653677`*^9, 
   3.5158209366274767`*^9}, {3.522605643625*^9, 3.522605643875*^9}, 
   3.571980270467515*^9, 3.5757721137915964`*^9, 3.576838311357515*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{
   RowBox[{"nodeConnections", "=", 
    RowBox[{"{", "\[IndentingNewLine]", 
     RowBox[{
      RowBox[{"HydraulicQnode", "[", 
       RowBox[{"1", ",", 
        RowBox[{"1.", "*", 
         RowBox[{"10", "^", "5"}]}], ",", "\"\<Upstream port\>\""}], "]"}], 
      ",", "\[IndentingNewLine]", 
      RowBox[{"HydraulicQnode", "[", 
       RowBox[{"2", ",", 
        RowBox[{"1.", "*", 
         RowBox[{"10", "^", "5"}]}], ",", "\"\<Downstream port\>\""}], 
       "]"}]}], "\[IndentingNewLine]", "}"}]}], ";"}], " "}]], "Input",
 CellChangeTimes->{{3.4752292939381866`*^9, 3.4752293318441935`*^9}, {
   3.47808399728125*^9, 3.478083998921875*^9}, 3.4988885288475237`*^9, {
   3.50394176215625*^9, 3.503941811890625*^9}, {3.507576389140625*^9, 
   3.507576508765625*^9}, {3.50757655321875*^9, 3.507576570375*^9}, {
   3.507796238859375*^9, 3.50779624034375*^9}, {3.515682916*^9, 
   3.515682921546875*^9}, 3.577721593410616*^9, {3.5777216336479173`*^9, 
   3.5777216346129723`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputVariables", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{"pref", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "7"}]}], ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Reference pressure\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "xv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Spool position\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "dxv", ",", "0.", ",", "double", ",", "\"\<m/s\>\"", ",", 
       "\"\<Spool position\>\""}], "}"}]}], "\[IndentingNewLine]", "}"}]}], 
  "\[IndentingNewLine]"}]], "Input",
 CellChangeTimes->{{3.577721526427785*^9, 3.5777216282216067`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "rho", ",", "860.", ",", "double", ",", "\"\<kg/m3\>\"", ",", 
       "\"\<oil density\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "visc", ",", "0.03", ",", "double", ",", "\"\<Ns/m2\>\"", ",", 
       "\"\<viscosity \>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Dv", ",", "0.03", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Spool diameter\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "frac", ",", "0.1", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Fraction of spool opening\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Bv", ",", "0.03", ",", "double", ",", "\"\<N/(m s)\>\"", ",", 
       "\"\<Damping\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xvmax", ",", "0.03", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Max spool displacement\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Cq", ",", "0.67", ",", "double", ",", "\"\< \>\"", ",", 
       "\"\<Flow coefficient\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "phi", ",", "0.03", ",", "double", ",", "\"\<rad\>\"", ",", 
       "\"\<Stream angle\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "ks", ",", "100.", ",", "double", ",", "\"\<N/m\>\"", ",", 
       "\"\<Spring constant\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "p0", ",", "100000.", ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Turbulent pressure trans.\>\""}], "}"}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.},
 CellChangeTimes->{{3.4779981058619356`*^9, 3.4779981542683554`*^9}, 
   3.4780017782035847`*^9, {3.478002203430644*^9, 3.478002217153696*^9}, {
   3.478002277203772*^9, 3.4780023021490927`*^9}, {3.4780026209521627`*^9, 
   3.478002664340765*^9}, {3.478021796078125*^9, 3.478021842203125*^9}, {
   3.478021885296875*^9, 3.47802199571875*^9}, {3.47802539628125*^9, 
   3.478025479125*^9}, {3.478026054375*^9, 3.47802606034375*^9}, {
   3.47818056640625*^9, 3.47818064359375*^9}, {3.478184752578125*^9, 
   3.478184788859375*^9}, {3.4781848254375*^9, 3.47818487890625*^9}, {
   3.47818496809375*^9, 3.478184980140625*^9}, {3.478189354859375*^9, 
   3.478189379078125*^9}, {3.478679541453125*^9, 3.478679542*^9}, 
   3.47868324640625*^9, 3.478683514703125*^9, {3.4807602098503075`*^9, 
   3.480760210147073*^9}, {3.480760285603793*^9, 3.4807602892909627`*^9}, 
   3.480760331584048*^9, 3.483026964640625*^9, {3.483027180765625*^9, 
   3.483027244046875*^9}, {3.4873878032782784`*^9, 3.4873878199976707`*^9}, 
   3.4988223817958884`*^9, 3.4988885288318987`*^9, {3.5023520516875*^9, 
   3.50235222190625*^9}, {3.50235391759375*^9, 3.50235391940625*^9}, 
   3.503905029342648*^9, 3.5039111089927917`*^9, {3.503914664843855*^9, 
   3.503914668218855*^9}, {3.50391516520323*^9, 3.503915204718855*^9}, {
   3.5039967133130913`*^9, 3.5039967163764143`*^9}, {3.5039969681607733`*^9, 
   3.503996993616342*^9}, {3.507574582234375*^9, 3.507574588828125*^9}, {
   3.507576286109375*^9, 3.507576354453125*^9}, {3.5077959019375*^9, 
   3.507795944828125*^9}, {3.5776163968315163`*^9, 3.57761640676951*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"kf", "=."}], ";", 
  RowBox[{"ke", "=."}], ";"}]], "Input",
 CellChangeTimes->{{3.577616272848119*^9, 3.5776162781606503`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"localExpressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"Av", "==", 
      FractionBox[
       RowBox[{"pi", " ", 
        SuperscriptBox["Dv", "2"]}], "4"]}], ",", "\[IndentingNewLine]", 
     RowBox[{"w", "==", 
      RowBox[{"pi", " ", "frac", "  ", "Dv", " ", 
       RowBox[{"Sin", "[", "phi", "]"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"kf", "==", 
      RowBox[{"2", " ", "Cq", " ", "w", " ", 
       RowBox[{"Cos", "[", "phi", "]"}], " ", 
       RowBox[{"(", 
        RowBox[{"p1", "-", "p2"}], ")"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"ke", "==", 
      RowBox[{"ks", "+", "kf"}]}]}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.483027001578125*^9, 3.483027021109375*^9}, {
   3.4873877137123394`*^9, 3.487387727322237*^9}, 3.4988885288318987`*^9, {
   3.503914893406355*^9, 3.50391490070323*^9}, {3.50391509367198*^9, 
   3.503915095406355*^9}, {3.571904349616847*^9, 3.5719044026725407`*^9}, {
   3.576241468772646*^9, 3.5762414692562466`*^9}, {3.576241502031904*^9, 
   3.5762415161811285`*^9}, {3.577616412285061*^9, 3.57761642297213*^9}}],

Cell[BoxData[""], "Input",
 CellChangeTimes->{{3.573149714210846*^9, 3.5731497291246986`*^9}, {
   3.573149782505752*^9, 3.573149788960121*^9}, 3.576241498007097*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemEquationsDA", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{
      RowBox[{
       RowBox[{"Mv", " ", 
        RowBox[{"der", "[", 
         RowBox[{"der", "[", "xv", "]"}], "]"}]}], " ", "+", " ", 
       RowBox[{"Bv", " ", 
        RowBox[{"der", "[", " ", "xv", "]"}]}], " ", "+", 
       RowBox[{"ke", " ", "xv"}]}], " ", "==", 
      RowBox[{
       RowBox[{"(", 
        RowBox[{"p1", "-", "p2", "-", "pref"}], ")"}], "Av"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{
      RowBox[{
       RowBox[{"Mv", " ", 
        RowBox[{"der", "[", "dxv", "]"}]}], " ", "+", " ", 
       RowBox[{"Bv", "  ", "dxv"}], " ", "+", 
       RowBox[{"ke", " ", "xv"}]}], " ", "==", 
      RowBox[{
       RowBox[{"(", 
        RowBox[{"p1", "-", "p2", "-", "pref"}], ")"}], "Av"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"q2", "==", 
      RowBox[{"xv", "*", "Cq", " ", "w", " ", 
       SqrtBox[
        FractionBox["2.", "rho"]], 
       RowBox[{"signedSquareL", "[", 
        RowBox[{
         RowBox[{"p1", "-", "p2"}], ",", "p0"}], "]"}]}]}]}], 
    "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.478679350421875*^9, 3.4786793594375*^9}, {
   3.47867939090625*^9, 3.478679416*^9}, 3.483026918*^9, 
   3.4873877224157987`*^9, 3.4988885288318987`*^9, {3.5039967325838947`*^9, 
   3.5039967690624475`*^9}, {3.504104403484375*^9, 3.50410440521875*^9}, {
   3.5075701360625*^9, 3.507570153265625*^9}, {3.507570213453125*^9, 
   3.507570214015625*^9}, {3.5075703420625*^9, 3.507570342109375*^9}, 
   3.5076079715712585`*^9, {3.507796204234375*^9, 3.50779621396875*^9}, {
   3.571904411642556*^9, 3.571904426244182*^9}, {3.5719045423707857`*^9, 
   3.5719045433223877`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"p1", "==", 
      RowBox[{"(", 
       RowBox[{"c1", "-", 
        RowBox[{"Zc1", " ", "q2"}]}], ")"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"p2", "==", 
      RowBox[{"(", 
       RowBox[{"c2", "+", 
        RowBox[{"Zc2", " ", "q2"}]}], ")"}]}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.478679428921875*^9, 3.478679481265625*^9}, 
   3.4873877346662693`*^9, 3.4988885288318987`*^9, {3.51582106834556*^9, 
   3.5158210687986856`*^9}, {3.5159004801768446`*^9, 
   3.5159004806455917`*^9}, {3.5719044730910645`*^9, 3.571904505617121*^9}, {
   3.571921169738586*^9, 3.571921172484191*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", "=", 
   RowBox[{"{", 
    RowBox[{"xv", ",", "dxv", ",", "q2", ",", "p1", ",", "p2"}], "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{
  3.504160940796875*^9, {3.504171522859375*^9, 3.504171524921875*^9}, {
   3.507570128828125*^9, 3.507570132078125*^9}, 3.50757021896875*^9, 
   3.507796195640625*^9, 3.5719045376751776`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", 
    RowBox[{"q1", "\[Equal]", 
     RowBox[{"-", "q2"}]}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.571904437694602*^9, 3.5719044499406233`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"variable2Limits", "=", 
   RowBox[{"{", 
    RowBox[{"{", 
     RowBox[{"xv", ",", "dxv", ",", "0.", ",", "Xvmax"}], "}"}], "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{
  3.5078869449067926`*^9, {3.52577632090125*^9, 3.52577633262*^9}}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input",
 CellChangeTimes->{3.5039025691670113`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.5776164267555084`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 2\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.5776164267585087`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(2, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.5776164267765102`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Part :: \
partd\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.5776164267795105`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\(\[LeftSkeleton] 1 \[RightSkeleton]\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicPressureRelief2ValveG.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicPressureRelief2ValveG.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\(\[LeftSkeleton] 1 \[RightSkeleton]\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.16666666666666666`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P1\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.3333333333333333`\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \\(\\({}\
\\)\\)\\)\\)]\\)\\), \\(\\(\[LeftSkeleton] 1 \[RightSkeleton]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\
\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \\(\\(\[LeftSkeleton] 19 \[RightSkeleton]\
\\)\\)\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \
\[Rule] \\\"Pxv\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\
\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.8333333333333333`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"Pdxv\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\\"version\\\" \[Rule] \\\"0.1\\\"}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\\\"typename\\\" \
\[Rule] \\\"HydraulicPressureRelief2ValveG\\\"\\)\\), \\(\\(\\\"displayname\\\
\" \[Rule] \\\"HydraulicPressureRelief2ValveG\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicPressureRelief2ValveG.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicPressureRelief2ValveG.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\[NoBreak] \
is not a list of contents. The third item in an XMLElement must be a list of \
contents, even if it is an empty list. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.5776164268255153`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.577616426830516*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.16666666666666666`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.16666666666666666`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.5776164268325157`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.577616426834516*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.3333333333333333`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.5776164268375163`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.5776164268395166`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.5776164268415165`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.5`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.5`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.5776164268435173`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.5140083557694654`*^9, 3.52260522525*^9, 3.522605921015625*^9, 
   3.522606219453125*^9, 3.522606299453125*^9, 3.524842629796875*^9, 
   3.533153911921875*^9, 3.53315400846875*^9, 3.533273391580092*^9, 
   3.538722952385125*^9, 3.538977591771036*^9, 3.5547156209834228`*^9, 
   3.5719772229013352`*^9, 3.571980278041663*^9, 3.5756491005122533`*^9, 
   3.5756518562956324`*^9, 3.5757161661463637`*^9, 3.5757162204503117`*^9, 
   3.575726611218907*^9, 3.575772187189325*^9, 3.5757724073419895`*^9, 
   3.5757725405974236`*^9, 3.5757726390116425`*^9, 3.5758602649058256`*^9, 
   3.576214803498736*^9, {3.576214842958736*^9, 3.576214868065736*^9}, 
   3.5762154624233885`*^9, {3.576215571176263*^9, 3.5762155778109264`*^9}, 
   3.576215924410583*^9, 3.576216004896631*^9, 3.576216060742215*^9, 
   3.5762161605057387`*^9, 3.5762168775678988`*^9, 3.5762169632084618`*^9, 
   3.5762170187800183`*^9, 3.5762171391210513`*^9, {3.5762172006182003`*^9, 
   3.576217228615*^9}, 3.5762412318833756`*^9, 3.576241308876119*^9, {
   3.57624138018009*^9, 3.5762414022385287`*^9}, 3.5762414777426615`*^9, 
   3.576241555695998*^9, 3.576836870543907*^9, 3.576838271954575*^9, 
   3.5768384238677645`*^9, 3.577450729704019*^9, 3.577451124924537*^9, 
   3.577451204390483*^9, 3.5774515244462357`*^9, 3.577451580818598*^9, 
   3.577451787004363*^9, 3.577605611179394*^9, 3.5776118697578306`*^9, 
   3.577616298190653*^9, 3.5776164268475175`*^9}],

Cell[BoxData["\<\"HydraulicPressureRelief2ValveG.xml\"\>"], "Output",
 CellChangeTimes->{
  3.53315391221875*^9, 3.53315400875*^9, 3.5332733916738358`*^9, 
   3.538722952432*^9, 3.538977591849161*^9, 3.554715621045904*^9, 
   3.5719772229325356`*^9, 3.571980278119747*^9, 3.575649100550256*^9, 
   3.575651856370637*^9, 3.5757161661775637`*^9, 3.5757162205283127`*^9, 
   3.575726611296907*^9, 3.5757721872829247`*^9, 3.5757724074511895`*^9, 
   3.5757725406598234`*^9, 3.575772639120843*^9, 3.5758602649837875`*^9, 
   3.576214803576736*^9, {3.576214843352736*^9, 3.5762148681527357`*^9}, 
   3.576215462492396*^9, {3.5762155713332787`*^9, 3.576215577880934*^9}, 
   3.5762159245055923`*^9, 3.576216005072648*^9, 3.5762160609522357`*^9, 
   3.5762161607227387`*^9, 3.5762168777719193`*^9, 3.576216963410482*^9, 
   3.576217018966037*^9, 3.5762171393300724`*^9, {3.5762172008382225`*^9, 
   3.576217228830021*^9}, 3.5762412319145756`*^9, 3.5762413090321193`*^9, {
   3.57624138024249*^9, 3.576241402300929*^9}, 3.5762414778986616`*^9, 
   3.576241555758398*^9, 3.5768368707189074`*^9, 3.576838272244604*^9, 
   3.57683842402078*^9, 3.577450729731022*^9, 3.57745112505155*^9, 
   3.5774512045464983`*^9, 3.5774515246132193`*^9, 3.577451580979582*^9, 
   3.5774517870743628`*^9, 3.577605611318408*^9, 3.5776118699038453`*^9, 
   3.577616298252659*^9, 3.5776164268485174`*^9}]
}, Open  ]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell["PressureReliefValveG", "Section",
 CellChangeTimes->{{3.4785828348125*^9, 3.47858284740625*^9}, 
   3.47867904165625*^9, {3.483026885*^9, 3.483026890359375*^9}, 
   3.4988885288318987`*^9, {3.507886987593746*^9, 3.507887015359016*^9}, 
   3.507887177638189*^9}],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<PressureReliefValveG\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{
  "brief", "=", 
   "\"\<A hydraulic pressure relief valve based on geometry\>\""}], 
  ";"}], "\n", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.507887022343302*^9, 
   3.507887057967846*^9}, {3.5078871702320337`*^9, 3.507887175028847*^9}, {
   3.5158208831437864`*^9, 3.51582092036206*^9}, 3.52267078596875*^9, 
   3.575772112949195*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Upstream port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Downstream port\>\""}], "]"}]}],
     "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.4752292939381866`*^9, 3.4752293318441935`*^9}, {
   3.47808399728125*^9, 3.478083998921875*^9}, 3.4988885288475237`*^9, {
   3.50394176215625*^9, 3.503941811890625*^9}, {3.507576389140625*^9, 
   3.507576508765625*^9}, {3.50757655321875*^9, 3.507576570375*^9}, {
   3.507796238859375*^9, 3.50779624034375*^9}, {3.5156830475625*^9, 
   3.515683050984375*^9}, {3.538136856098759*^9, 3.5381369597752786`*^9}, {
   3.5719055396181374`*^9, 3.5719055424261427`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputVariables", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{"{", 
     RowBox[{"pref", ",", 
      RowBox[{"1.", "*", 
       RowBox[{"10", "^", "7"}]}], ",", "double", ",", "\"\<Pa\>\"", ",", 
      "\"\<Reference pressure\>\""}], "}"}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.5381369657755475`*^9, 3.5381370104181724`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{
   RowBox[{"outputVariables", "=", 
    RowBox[{"{", "\[IndentingNewLine]", 
     RowBox[{
      RowBox[{"{", 
       RowBox[{
       "xv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
        "\"\<Spool position\>\""}], "}"}], ",", "\[IndentingNewLine]", 
      RowBox[{"{", 
       RowBox[{
       "dxv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
        "\"\<Spool position\>\""}], "}"}]}], "\[IndentingNewLine]", "}"}]}], 
   ";"}], " "}]], "Input",
 CellChangeTimes->{{3.5381369720414534`*^9, 3.5381369916673326`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "rho", ",", "860.", ",", "double", ",", "\"\<kg/m3\>\"", ",", 
       "\"\<oil density\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "visc", ",", "0.03", ",", "double", ",", "\"\<Ns/m2\>\"", ",", 
       "\"\<viscosity \>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Dv", ",", "0.03", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Spool diameter\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "frac", ",", "0.1", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Fraction of spool opening\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Bv", ",", "0.03", ",", "double", ",", "\"\<N/(m s)\>\"", ",", 
       "\"\<Damping\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xvmax", ",", "0.03", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Max spool displacement\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Cq", ",", "0.67", ",", "double", ",", "\"\< \>\"", ",", 
       "\"\<Flow coefficient\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "phi", ",", "0.03", ",", "double", ",", "\"\<rad\>\"", ",", 
       "\"\<Stream angle\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "ks", ",", "100.", ",", "double", ",", "\"\<N/m\>\"", ",", 
       "\"\<Spring constant\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "p0", ",", "100000.", ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Turbulent pressure trans.\>\""}], "}"}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.},
 CellChangeTimes->{{3.4779981058619356`*^9, 3.4779981542683554`*^9}, 
   3.4780017782035847`*^9, {3.478002203430644*^9, 3.478002217153696*^9}, {
   3.478002277203772*^9, 3.4780023021490927`*^9}, {3.4780026209521627`*^9, 
   3.478002664340765*^9}, {3.478021796078125*^9, 3.478021842203125*^9}, {
   3.478021885296875*^9, 3.47802199571875*^9}, {3.47802539628125*^9, 
   3.478025479125*^9}, {3.478026054375*^9, 3.47802606034375*^9}, {
   3.47818056640625*^9, 3.47818064359375*^9}, {3.478184752578125*^9, 
   3.478184788859375*^9}, {3.4781848254375*^9, 3.47818487890625*^9}, {
   3.47818496809375*^9, 3.478184980140625*^9}, {3.478189354859375*^9, 
   3.478189379078125*^9}, {3.478679541453125*^9, 3.478679542*^9}, 
   3.47868324640625*^9, 3.478683514703125*^9, {3.4807602098503075`*^9, 
   3.480760210147073*^9}, {3.480760285603793*^9, 3.4807602892909627`*^9}, 
   3.480760331584048*^9, 3.483026964640625*^9, {3.483027180765625*^9, 
   3.483027244046875*^9}, {3.4873878032782784`*^9, 3.4873878199976707`*^9}, 
   3.4988223817958884`*^9, 3.4988885288318987`*^9, {3.5023520516875*^9, 
   3.50235222190625*^9}, {3.50235391759375*^9, 3.50235391940625*^9}, 
   3.503905029342648*^9, 3.5039111089927917`*^9, {3.503914664843855*^9, 
   3.503914668218855*^9}, {3.50391516520323*^9, 3.503915204718855*^9}, {
   3.5039967133130913`*^9, 3.5039967163764143`*^9}, {3.5039969681607733`*^9, 
   3.503996993616342*^9}, {3.507574582234375*^9, 3.507574588828125*^9}, {
   3.507576286109375*^9, 3.507576354453125*^9}, {3.5077959019375*^9, 
   3.507795944828125*^9}, {3.51568580440625*^9, 3.51568581115625*^9}, 
   3.5159285657593565`*^9, {3.57761182214907*^9, 3.5776118274916043`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"kf", "=."}], ";", 
  RowBox[{"ke", "=."}], ";"}]], "Input",
 CellChangeTimes->{{3.576241365890465*^9, 3.576241373316078*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"localExpressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"Av", "==", 
      FractionBox[
       RowBox[{"pi", " ", 
        SuperscriptBox["Dv", "2"]}], "4"]}], ",", "\[IndentingNewLine]", 
     RowBox[{"w", "\[Equal]", 
      RowBox[{"pi", " ", "frac", " ", "Dv", " ", 
       RowBox[{"Sin", "[", "phi", "]"}]}]}]}], "\[IndentingNewLine]", "}"}]}],
   ";"}]], "Input",
 CellChangeTimes->{{3.483027001578125*^9, 3.483027021109375*^9}, {
   3.4873877137123394`*^9, 3.487387727322237*^9}, 3.4988885288318987`*^9, {
   3.503914893406355*^9, 3.50391490070323*^9}, {3.50391509367198*^9, 
   3.503915095406355*^9}, {3.525772523916875*^9, 3.525772528510625*^9}, {
   3.534756520505298*^9, 3.534756559181628*^9}, {3.534756692025055*^9, 
   3.534756695744233*^9}, {3.57190456751803*^9, 3.571904619278921*^9}, {
   3.5776118074696026`*^9, 3.577611811653021*^9}, {3.5776162077246075`*^9, 
   3.577616208890724*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"kf", "=", 
   RowBox[{"2", " ", "Cq", " ", "w", " ", 
    RowBox[{"Cos", "[", "phi", "]"}], " ", 
    RowBox[{"(", 
     RowBox[{"p1", "-", "p2"}], ")"}]}]}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ke", "=", 
   RowBox[{"ks", "+", "kf"}]}], ";"}]}], "Input",
 CellChangeTimes->{{3.573149759175418*^9, 3.573149768059926*^9}}],

Cell[CellGroupData[{

Cell[BoxData["localExpressions"], "Input"],

Cell[BoxData[
 RowBox[{"{", 
  RowBox[{
   RowBox[{"Av", "\[Equal]", 
    RowBox[{"0.78539816339744830961566084581987604998`6.", " ", 
     SuperscriptBox["Dv", "2"]}]}], ",", 
   RowBox[{"w", "\[Equal]", 
    RowBox[{
    "3.14159265358979323846264338327950419993`6.", " ", "Dv", " ", "frac", 
     " ", 
     RowBox[{"Sin", "[", "phi", "]"}]}]}]}], "}"}]], "Output",
 CellChangeTimes->{
  3.577616139875823*^9, {3.577616211292964*^9, 3.5776162247703114`*^9}}]
}, Open  ]],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemEquationsDA", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{
      RowBox[{
       RowBox[{"Bv", " ", 
        RowBox[{"der", "[", " ", "xv", "]"}]}], " ", "+", 
       RowBox[{"ke", " ", "xv"}]}], " ", "==", 
      RowBox[{
       RowBox[{"(", 
        RowBox[{"p1", "-", "p2", "-", "pref"}], ")"}], "Av"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"q2", "==", 
      RowBox[{"xv", "*", "Cq", " ", "w", " ", 
       SqrtBox[
        FractionBox["2.", "rho"]], 
       RowBox[{"signedSquareL", "[", 
        RowBox[{
         RowBox[{"p1", "-", "p2"}], ",", "p0"}], "]"}]}]}]}], "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.478679350421875*^9, 3.4786793594375*^9}, {
   3.47867939090625*^9, 3.478679416*^9}, 3.483026918*^9, 
   3.4873877224157987`*^9, 3.4988885288318987`*^9, {3.5039967325838947`*^9, 
   3.5039967690624475`*^9}, {3.504104403484375*^9, 3.50410440521875*^9}, {
   3.5075701360625*^9, 3.507570153265625*^9}, {3.507570213453125*^9, 
   3.507570214015625*^9}, {3.5075703420625*^9, 3.507570342109375*^9}, 
   3.5076079715712585`*^9, {3.507796204234375*^9, 3.50779621396875*^9}, {
   3.507887076139488*^9, 3.5078870785613317`*^9}, {3.5719046338649464`*^9, 
   3.571904651898578*^9}, 3.571904682880233*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"p1", "==", 
      RowBox[{"(", 
       RowBox[{"c1", "-", 
        RowBox[{"Zc1", " ", "q2"}]}], ")"}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"p2", "==", 
      RowBox[{"(", 
       RowBox[{"c2", "+", 
        RowBox[{"Zc2", " ", "q2"}]}], ")"}]}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.478679428921875*^9, 3.478679481265625*^9}, 
   3.4873877346662693`*^9, 3.4988885288318987`*^9, {3.51582106834556*^9, 
   3.5158210687986856`*^9}, {3.5159004801768446`*^9, 
   3.5159004806455917`*^9}, {3.5719044730910645`*^9, 3.571904505617121*^9}, {
   3.571921169738586*^9, 3.571921172484191*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", "=", 
   RowBox[{"{", 
    RowBox[{"xv", ",", "q2", ",", "p1", ",", "p2"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{
  3.504160940796875*^9, {3.504171522859375*^9, 3.504171524921875*^9}, {
   3.507570128828125*^9, 3.507570132078125*^9}, 3.50757021896875*^9, 
   3.507796195640625*^9, 3.507887067686471*^9, 3.571904675095819*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", 
    RowBox[{"q1", "\[Equal]", 
     RowBox[{"-", "q2"}]}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.571904437694602*^9, 3.5719044499406233`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"variableLimits", "=", 
   RowBox[{"{", 
    RowBox[{"{", 
     RowBox[{"xv", ",", "0.", ",", "Xvmax"}], "}"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{3.5078869449067926`*^9}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input",
 CellChangeTimes->{3.5039025691670113`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.538722952182*^9, 3.538977591349161*^9, 3.5547156208584595`*^9, 
   3.5719772226049294`*^9, 3.575649100349244*^9, 3.5756518561346235`*^9, 
   3.5757161659435625`*^9, 3.575716220278711*^9, 3.5757266110473065`*^9, 
   3.5757721869709244`*^9, 3.5757724071079893`*^9, 3.575772540425823*^9, 
   3.5757726387932425`*^9, 3.575860264734309*^9, 3.576214803257736*^9, {
   3.576214842724736*^9, 3.576214867905736*^9}, 3.5762154622593727`*^9, {
   3.5762155689220376`*^9, 3.5762155776459103`*^9}, 3.5762159240735493`*^9, 
   3.576216004538595*^9, 3.5762160603921795`*^9, 3.5762161601507387`*^9, 
   3.5762168772258644`*^9, 3.576216962862427*^9, 3.5762170184119816`*^9, 
   3.576217138768016*^9, {3.576217200240163*^9, 3.5762172282409625`*^9}, 
   3.5762412317117753`*^9, 3.5762413086577187`*^9, {3.57624138002409*^9, 
   3.576241402082528*^9}, 3.576241477493061*^9, 3.576241555539998*^9, 
   3.576836870973907*^9, 3.5768382723916187`*^9, 3.576838424159794*^9, 
   3.5774507302140703`*^9, 3.5774511255556*^9, 3.577451204993543*^9, 
   3.577451525043176*^9, 3.5774515814385357`*^9, 3.577451787425363*^9, 
   3.5776056114884253`*^9, 3.5776118700468597`*^9, 3.5776160916650023`*^9, 
   3.5776161349883347`*^9, {3.5776162114359784`*^9, 3.577616224896324*^9}}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \
\\\"HydraulicPressureReliefValveG\\\"\\)\\), \\(\\(\\\"displayname\\\" \
\[Rule] \\\"HydraulicPressureReliefValveG\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicPressureReliefValveG.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicPressureReliefValveG.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\
\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \
0.3333333333333333`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P1\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(\[LeftSkeleton] 3 \[RightSkeleton]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \
\\\"0.666667\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \\\"1\\\"\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"90\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"dxv\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\
\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\\"version\\\" \[Rule] \\\"0.1\\\"}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\({\\(\\(\\\"typename\\\" \
\[Rule] \\\"HydraulicPressureReliefValveG\\\"\\)\\), \
\\(\\(\\\"displayname\\\" \[Rule] \
\\\"HydraulicPressureReliefValveG\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicPressureReliefValveG.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicPressureReliefValveG.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)\\)\\)]\\)\[NoBreak] is not \
a list of contents. The third item in an XMLElement must be a list of \
contents, even if it is an empty list. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.538722952182*^9, 3.538977591349161*^9, 3.5547156208584595`*^9, 
   3.5719772226049294`*^9, 3.575649100349244*^9, 3.5756518561346235`*^9, 
   3.5757161659435625`*^9, 3.575716220278711*^9, 3.5757266110473065`*^9, 
   3.5757721869709244`*^9, 3.5757724071079893`*^9, 3.575772540425823*^9, 
   3.5757726387932425`*^9, 3.575860264734309*^9, 3.576214803257736*^9, {
   3.576214842724736*^9, 3.576214867905736*^9}, 3.5762154622593727`*^9, {
   3.5762155689220376`*^9, 3.5762155776459103`*^9}, 3.5762159240735493`*^9, 
   3.576216004538595*^9, 3.5762160603921795`*^9, 3.5762161601507387`*^9, 
   3.5762168772258644`*^9, 3.576216962862427*^9, 3.5762170184119816`*^9, 
   3.576217138768016*^9, {3.576217200240163*^9, 3.5762172282409625`*^9}, 
   3.5762412317117753`*^9, 3.5762413086577187`*^9, {3.57624138002409*^9, 
   3.576241402082528*^9}, 3.576241477493061*^9, 3.576241555539998*^9, 
   3.576836870973907*^9, 3.5768382723916187`*^9, 3.576838424159794*^9, 
   3.5774507302140703`*^9, 3.5774511255556*^9, 3.577451204993543*^9, 
   3.577451525043176*^9, 3.5774515814385357`*^9, 3.577451787425363*^9, 
   3.5776056114884253`*^9, 3.5776118700468597`*^9, 3.5776160916650023`*^9, 
   3.5776161349883347`*^9, {3.5776162114359784`*^9, 3.577616224924327*^9}}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.538722952182*^9, 3.538977591349161*^9, 3.5547156208584595`*^9, 
   3.5719772226049294`*^9, 3.575649100349244*^9, 3.5756518561346235`*^9, 
   3.5757161659435625`*^9, 3.575716220278711*^9, 3.5757266110473065`*^9, 
   3.5757721869709244`*^9, 3.5757724071079893`*^9, 3.575772540425823*^9, 
   3.5757726387932425`*^9, 3.575860264734309*^9, 3.576214803257736*^9, {
   3.576214842724736*^9, 3.576214867905736*^9}, 3.5762154622593727`*^9, {
   3.5762155689220376`*^9, 3.5762155776459103`*^9}, 3.5762159240735493`*^9, 
   3.576216004538595*^9, 3.5762160603921795`*^9, 3.5762161601507387`*^9, 
   3.5762168772258644`*^9, 3.576216962862427*^9, 3.5762170184119816`*^9, 
   3.576217138768016*^9, {3.576217200240163*^9, 3.5762172282409625`*^9}, 
   3.5762412317117753`*^9, 3.5762413086577187`*^9, {3.57624138002409*^9, 
   3.576241402082528*^9}, 3.576241477493061*^9, 3.576241555539998*^9, 
   3.576836870973907*^9, 3.5768382723916187`*^9, 3.576838424159794*^9, 
   3.5774507302140703`*^9, 3.5774511255556*^9, 3.577451204993543*^9, 
   3.577451525043176*^9, 3.5774515814385357`*^9, 3.577451787425363*^9, 
   3.5776056114884253`*^9, 3.5776118700468597`*^9, 3.5776160916650023`*^9, 
   3.5776161349883347`*^9, {3.5776162114359784`*^9, 3.5776162249283276`*^9}}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.3333333333333333`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.538722952182*^9, 3.538977591349161*^9, 3.5547156208584595`*^9, 
   3.5719772226049294`*^9, 3.575649100349244*^9, 3.5756518561346235`*^9, 
   3.5757161659435625`*^9, 3.575716220278711*^9, 3.5757266110473065`*^9, 
   3.5757721869709244`*^9, 3.5757724071079893`*^9, 3.575772540425823*^9, 
   3.5757726387932425`*^9, 3.575860264734309*^9, 3.576214803257736*^9, {
   3.576214842724736*^9, 3.576214867905736*^9}, 3.5762154622593727`*^9, {
   3.5762155689220376`*^9, 3.5762155776459103`*^9}, 3.5762159240735493`*^9, 
   3.576216004538595*^9, 3.5762160603921795`*^9, 3.5762161601507387`*^9, 
   3.5762168772258644`*^9, 3.576216962862427*^9, 3.5762170184119816`*^9, 
   3.576217138768016*^9, {3.576217200240163*^9, 3.5762172282409625`*^9}, 
   3.5762412317117753`*^9, 3.5762413086577187`*^9, {3.57624138002409*^9, 
   3.576241402082528*^9}, 3.576241477493061*^9, 3.576241555539998*^9, 
   3.576836870973907*^9, 3.5768382723916187`*^9, 3.576838424159794*^9, 
   3.5774507302140703`*^9, 3.5774511255556*^9, 3.577451204993543*^9, 
   3.577451525043176*^9, 3.5774515814385357`*^9, 3.577451787425363*^9, 
   3.5776056114884253`*^9, 3.5776118700468597`*^9, 3.5776160916650023`*^9, 
   3.5776161349883347`*^9, {3.5776162114359784`*^9, 3.5776162249303274`*^9}}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.538722952182*^9, 3.538977591349161*^9, 3.5547156208584595`*^9, 
   3.5719772226049294`*^9, 3.575649100349244*^9, 3.5756518561346235`*^9, 
   3.5757161659435625`*^9, 3.575716220278711*^9, 3.5757266110473065`*^9, 
   3.5757721869709244`*^9, 3.5757724071079893`*^9, 3.575772540425823*^9, 
   3.5757726387932425`*^9, 3.575860264734309*^9, 3.576214803257736*^9, {
   3.576214842724736*^9, 3.576214867905736*^9}, 3.5762154622593727`*^9, {
   3.5762155689220376`*^9, 3.5762155776459103`*^9}, 3.5762159240735493`*^9, 
   3.576216004538595*^9, 3.5762160603921795`*^9, 3.5762161601507387`*^9, 
   3.5762168772258644`*^9, 3.576216962862427*^9, 3.5762170184119816`*^9, 
   3.576217138768016*^9, {3.576217200240163*^9, 3.5762172282409625`*^9}, 
   3.5762412317117753`*^9, 3.5762413086577187`*^9, {3.57624138002409*^9, 
   3.576241402082528*^9}, 3.576241477493061*^9, 3.576241555539998*^9, 
   3.576836870973907*^9, 3.5768382723916187`*^9, 3.576838424159794*^9, 
   3.5774507302140703`*^9, 3.5774511255556*^9, 3.577451204993543*^9, 
   3.577451525043176*^9, 3.5774515814385357`*^9, 3.577451787425363*^9, 
   3.5776056114884253`*^9, 3.5776118700468597`*^9, 3.5776160916650023`*^9, 
   3.5776161349883347`*^9, {3.5776162114359784`*^9, 3.577616224932328*^9}}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.6666666666666666`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.6666666666666666`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.538722952182*^9, 3.538977591349161*^9, 3.5547156208584595`*^9, 
   3.5719772226049294`*^9, 3.575649100349244*^9, 3.5756518561346235`*^9, 
   3.5757161659435625`*^9, 3.575716220278711*^9, 3.5757266110473065`*^9, 
   3.5757721869709244`*^9, 3.5757724071079893`*^9, 3.575772540425823*^9, 
   3.5757726387932425`*^9, 3.575860264734309*^9, 3.576214803257736*^9, {
   3.576214842724736*^9, 3.576214867905736*^9}, 3.5762154622593727`*^9, {
   3.5762155689220376`*^9, 3.5762155776459103`*^9}, 3.5762159240735493`*^9, 
   3.576216004538595*^9, 3.5762160603921795`*^9, 3.5762161601507387`*^9, 
   3.5762168772258644`*^9, 3.576216962862427*^9, 3.5762170184119816`*^9, 
   3.576217138768016*^9, {3.576217200240163*^9, 3.5762172282409625`*^9}, 
   3.5762412317117753`*^9, 3.5762413086577187`*^9, {3.57624138002409*^9, 
   3.576241402082528*^9}, 3.576241477493061*^9, 3.576241555539998*^9, 
   3.576836870973907*^9, 3.5768382723916187`*^9, 3.576838424159794*^9, 
   3.5774507302140703`*^9, 3.5774511255556*^9, 3.577451204993543*^9, 
   3.577451525043176*^9, 3.5774515814385357`*^9, 3.577451787425363*^9, 
   3.5776056114884253`*^9, 3.5776118700468597`*^9, 3.5776160916650023`*^9, 
   3.5776161349883347`*^9, {3.5776162114359784`*^9, 3.577616224934328*^9}}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.538722952182*^9, 3.538977591349161*^9, 3.5547156208584595`*^9, 
   3.5719772226049294`*^9, 3.575649100349244*^9, 3.5756518561346235`*^9, 
   3.5757161659435625`*^9, 3.575716220278711*^9, 3.5757266110473065`*^9, 
   3.5757721869709244`*^9, 3.5757724071079893`*^9, 3.575772540425823*^9, 
   3.5757726387932425`*^9, 3.575860264734309*^9, 3.576214803257736*^9, {
   3.576214842724736*^9, 3.576214867905736*^9}, 3.5762154622593727`*^9, {
   3.5762155689220376`*^9, 3.5762155776459103`*^9}, 3.5762159240735493`*^9, 
   3.576216004538595*^9, 3.5762160603921795`*^9, 3.5762161601507387`*^9, 
   3.5762168772258644`*^9, 3.576216962862427*^9, 3.5762170184119816`*^9, 
   3.576217138768016*^9, {3.576217200240163*^9, 3.5762172282409625`*^9}, 
   3.5762412317117753`*^9, 3.5762413086577187`*^9, {3.57624138002409*^9, 
   3.576241402082528*^9}, 3.576241477493061*^9, 3.576241555539998*^9, 
   3.576836870973907*^9, 3.5768382723916187`*^9, 3.576838424159794*^9, 
   3.5774507302140703`*^9, 3.5774511255556*^9, 3.577451204993543*^9, 
   3.577451525043176*^9, 3.5774515814385357`*^9, 3.577451787425363*^9, 
   3.5776056114884253`*^9, 3.5776118700468597`*^9, 3.5776160916650023`*^9, 
   3.5776161349883347`*^9, {3.5776162114359784`*^9, 3.5776162249363284`*^9}}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.538722952182*^9, 3.538977591349161*^9, 3.5547156208584595`*^9, 
   3.5719772226049294`*^9, 3.575649100349244*^9, 3.5756518561346235`*^9, 
   3.5757161659435625`*^9, 3.575716220278711*^9, 3.5757266110473065`*^9, 
   3.5757721869709244`*^9, 3.5757724071079893`*^9, 3.575772540425823*^9, 
   3.5757726387932425`*^9, 3.575860264734309*^9, 3.576214803257736*^9, {
   3.576214842724736*^9, 3.576214867905736*^9}, 3.5762154622593727`*^9, {
   3.5762155689220376`*^9, 3.5762155776459103`*^9}, 3.5762159240735493`*^9, 
   3.576216004538595*^9, 3.5762160603921795`*^9, 3.5762161601507387`*^9, 
   3.5762168772258644`*^9, 3.576216962862427*^9, 3.5762170184119816`*^9, 
   3.576217138768016*^9, {3.576217200240163*^9, 3.5762172282409625`*^9}, 
   3.5762412317117753`*^9, 3.5762413086577187`*^9, {3.57624138002409*^9, 
   3.576241402082528*^9}, 3.576241477493061*^9, 3.576241555539998*^9, 
   3.576836870973907*^9, 3.5768382723916187`*^9, 3.576838424159794*^9, 
   3.5774507302140703`*^9, 3.5774511255556*^9, 3.577451204993543*^9, 
   3.577451525043176*^9, 3.5774515814385357`*^9, 3.577451787425363*^9, 
   3.5776056114884253`*^9, 3.5776118700468597`*^9, 3.5776160916650023`*^9, 
   3.5776161349883347`*^9, {3.5776162114359784`*^9, 3.5776162249383287`*^9}}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.5`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"x\
\\\" \[Rule] 0.5`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.538722952182*^9, 3.538977591349161*^9, 3.5547156208584595`*^9, 
   3.5719772226049294`*^9, 3.575649100349244*^9, 3.5756518561346235`*^9, 
   3.5757161659435625`*^9, 3.575716220278711*^9, 3.5757266110473065`*^9, 
   3.5757721869709244`*^9, 3.5757724071079893`*^9, 3.575772540425823*^9, 
   3.5757726387932425`*^9, 3.575860264734309*^9, 3.576214803257736*^9, {
   3.576214842724736*^9, 3.576214867905736*^9}, 3.5762154622593727`*^9, {
   3.5762155689220376`*^9, 3.5762155776459103`*^9}, 3.5762159240735493`*^9, 
   3.576216004538595*^9, 3.5762160603921795`*^9, 3.5762161601507387`*^9, 
   3.5762168772258644`*^9, 3.576216962862427*^9, 3.5762170184119816`*^9, 
   3.576217138768016*^9, {3.576217200240163*^9, 3.5762172282409625`*^9}, 
   3.5762412317117753`*^9, 3.5762413086577187`*^9, {3.57624138002409*^9, 
   3.576241402082528*^9}, 3.576241477493061*^9, 3.576241555539998*^9, 
   3.576836870973907*^9, 3.5768382723916187`*^9, 3.576838424159794*^9, 
   3.5774507302140703`*^9, 3.5774511255556*^9, 3.577451204993543*^9, 
   3.577451525043176*^9, 3.5774515814385357`*^9, 3.577451787425363*^9, 
   3.5776056114884253`*^9, 3.5776118700468597`*^9, 3.5776160916650023`*^9, 
   3.5776161349883347`*^9, {3.5776162114359784`*^9, 3.5776162249403286`*^9}}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.538722952182*^9, 3.538977591349161*^9, 3.5547156208584595`*^9, 
   3.5719772226049294`*^9, 3.575649100349244*^9, 3.5756518561346235`*^9, 
   3.5757161659435625`*^9, 3.575716220278711*^9, 3.5757266110473065`*^9, 
   3.5757721869709244`*^9, 3.5757724071079893`*^9, 3.575772540425823*^9, 
   3.5757726387932425`*^9, 3.575860264734309*^9, 3.576214803257736*^9, {
   3.576214842724736*^9, 3.576214867905736*^9}, 3.5762154622593727`*^9, {
   3.5762155689220376`*^9, 3.5762155776459103`*^9}, 3.5762159240735493`*^9, 
   3.576216004538595*^9, 3.5762160603921795`*^9, 3.5762161601507387`*^9, 
   3.5762168772258644`*^9, 3.576216962862427*^9, 3.5762170184119816`*^9, 
   3.576217138768016*^9, {3.576217200240163*^9, 3.5762172282409625`*^9}, 
   3.5762412317117753`*^9, 3.5762413086577187`*^9, {3.57624138002409*^9, 
   3.576241402082528*^9}, 3.576241477493061*^9, 3.576241555539998*^9, 
   3.576836870973907*^9, 3.5768382723916187`*^9, 3.576838424159794*^9, 
   3.5774507302140703`*^9, 3.5774511255556*^9, 3.577451204993543*^9, 
   3.577451525043176*^9, 3.5774515814385357`*^9, 3.577451787425363*^9, 
   3.5776056114884253`*^9, 3.5776118700468597`*^9, 3.5776160916650023`*^9, 
   3.5776161349883347`*^9, {3.5776162114359784`*^9, 3.5776162249423285`*^9}}],

Cell[BoxData["\<\"HydraulicPressureReliefValveG.xml\"\>"], "Output",
 CellChangeTimes->{
  3.533153910703125*^9, 3.533154006515625*^9, 3.533273391423853*^9, 
   3.5347564611703386`*^9, 3.5347566009833183`*^9, 3.5347567087301044`*^9, 
   3.5381370220280676`*^9, 3.538722952228875*^9, 3.538977591599161*^9, 
   3.554715620905321*^9, 3.5719772226517305`*^9, 3.5756491003582444`*^9, 
   3.5756518561746254`*^9, 3.5757161659591627`*^9, 3.575716220325511*^9, 
   3.5757266110785065`*^9, 3.5757721870177245`*^9, 3.575772407170389*^9, 
   3.575772540457023*^9, 3.575772638840042*^9, 3.575860264749902*^9, 
   3.576214803290736*^9, {3.576214842765736*^9, 3.576214867938736*^9}, 
   3.5762154622883754`*^9, {3.576215568963042*^9, 3.576215577678913*^9}, 
   3.576215924111553*^9, 3.5762160046146026`*^9, 3.5762160604751883`*^9, 
   3.576216160238739*^9, 3.5762168772948713`*^9, 3.576216962929434*^9, 
   3.57621701849599*^9, 3.576217138837023*^9, {3.5762172003341722`*^9, 
   3.5762172283319716`*^9}, 3.5762412317273755`*^9, 3.576241308704519*^9, {
   3.5762413800552893`*^9, 3.5762414021137285`*^9}, 3.5762414775398607`*^9, 
   3.576241555571198*^9, 3.576836871072907*^9, 3.576838272496629*^9, 
   3.576838424200798*^9, 3.577450730225071*^9, 3.577451125564601*^9, 
   3.5774512050265465`*^9, 3.5774515250791726`*^9, 3.5774515814725327`*^9, 
   3.577451787466363*^9, 3.577605611520428*^9, 3.5776118700768623`*^9, 
   3.5776160917060065`*^9, 3.5776161350583415`*^9, {3.577616211479983*^9, 
   3.5776162249443293`*^9}}]
}, Open  ]]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell["PressureControlValveG", "Section",
 CellChangeTimes->{{3.4785828348125*^9, 3.47858284740625*^9}, 
   3.47867904165625*^9, {3.483026885*^9, 3.483026890359375*^9}, 
   3.4988885288318987`*^9, {3.507886987593746*^9, 3.507887015359016*^9}, 
   3.507887177638189*^9, {3.572724409593012*^9, 3.572724410652072*^9}, {
   3.5731444722970257`*^9, 3.5731444763132553`*^9}, {3.573144509032127*^9, 
   3.5731445114602656`*^9}, {3.5731516615712285`*^9, 3.573151663333329*^9}}],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<PressureControlValveG\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{
  "brief", "=", 
   "\"\<A hydraulic pressure relief valve based on geometry\>\""}], 
  ";"}], "\n", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.507887022343302*^9, 
   3.507887057967846*^9}, {3.5078871702320337`*^9, 3.507887175028847*^9}, {
   3.5158208831437864`*^9, 3.51582092036206*^9}, 3.52267078596875*^9, {
   3.5727244220517244`*^9, 3.5727244258479414`*^9}, {3.5731445197087374`*^9, 
   3.5731445222458825`*^9}, {3.5731519828286037`*^9, 3.573151986646822*^9}, 
   3.5758601223526926`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Upstream port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Downstream port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"3", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Opening port\>\""}], "]"}], ",",
      "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"4", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Closing port\>\""}], "]"}]}], 
    "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.4752292939381866`*^9, 3.4752293318441935`*^9}, {
   3.47808399728125*^9, 3.478083998921875*^9}, 3.4988885288475237`*^9, {
   3.50394176215625*^9, 3.503941811890625*^9}, {3.507576389140625*^9, 
   3.507576508765625*^9}, {3.50757655321875*^9, 3.507576570375*^9}, {
   3.507796238859375*^9, 3.50779624034375*^9}, {3.5156830475625*^9, 
   3.515683050984375*^9}, {3.538136856098759*^9, 3.5381369597752786`*^9}, {
   3.5719055396181374`*^9, 3.5719055424261427`*^9}, {3.5731449671873317`*^9, 
   3.5731449722026186`*^9}, {3.5731516922089806`*^9, 3.573151698003312*^9}, {
   3.577606187835734*^9, 3.5776061941131063`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputVariables", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{"{", 
     RowBox[{"pref", ",", 
      RowBox[{"1.", "*", 
       RowBox[{"10", "^", "6"}]}], ",", "double", ",", "\"\<Pa\>\"", ",", 
      "\"\<Reference pressure\>\""}], "}"}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.5381369657755475`*^9, 3.5381370104181724`*^9}, 
   3.5731449806651025`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{
   RowBox[{"outputVariables", "=", 
    RowBox[{"{", "\[IndentingNewLine]", 
     RowBox[{
      RowBox[{"{", 
       RowBox[{
       "xv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
        "\"\<Spool position\>\""}], "}"}], ",", "\[IndentingNewLine]", 
      RowBox[{"{", 
       RowBox[{
       "dxv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
        "\"\<Spool position\>\""}], "}"}]}], "\[IndentingNewLine]", "}"}]}], 
   ";"}], " "}]], "Input",
 CellChangeTimes->{{3.5381369720414534`*^9, 3.5381369916673326`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "rho", ",", "860.", ",", "double", ",", "\"\<kg/m3\>\"", ",", 
       "\"\<oil density\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "visc", ",", "0.03", ",", "double", ",", "\"\<Ns/m2\>\"", ",", 
       "\"\<viscosity \>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Dv", ",", "0.03", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Spool diameter\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "frac", ",", "0.1", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Fraction of spool opening\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Bv", ",", "100.", ",", "double", ",", "\"\<N/(m s)\>\"", ",", 
       "\"\<Damping\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xvmax", ",", "0.03", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Max spool displacement\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Cq", ",", "0.67", ",", "double", ",", "\"\< \>\"", ",", 
       "\"\<Flow coefficient\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "phi", ",", "0.03", ",", "double", ",", "\"\<rad\>\"", ",", 
       "\"\<Stream angle\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "ks", ",", "100.", ",", "double", ",", "\"\<N/m\>\"", ",", 
       "\"\<Spring constant\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "p0", ",", "100000.", ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Turbulent pressure trans.\>\""}], "}"}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.},
 CellChangeTimes->{{3.4779981058619356`*^9, 3.4779981542683554`*^9}, 
   3.4780017782035847`*^9, {3.478002203430644*^9, 3.478002217153696*^9}, {
   3.478002277203772*^9, 3.4780023021490927`*^9}, {3.4780026209521627`*^9, 
   3.478002664340765*^9}, {3.478021796078125*^9, 3.478021842203125*^9}, {
   3.478021885296875*^9, 3.47802199571875*^9}, {3.47802539628125*^9, 
   3.478025479125*^9}, {3.478026054375*^9, 3.47802606034375*^9}, {
   3.47818056640625*^9, 3.47818064359375*^9}, {3.478184752578125*^9, 
   3.478184788859375*^9}, {3.4781848254375*^9, 3.47818487890625*^9}, {
   3.47818496809375*^9, 3.478184980140625*^9}, {3.478189354859375*^9, 
   3.478189379078125*^9}, {3.478679541453125*^9, 3.478679542*^9}, 
   3.47868324640625*^9, 3.478683514703125*^9, {3.4807602098503075`*^9, 
   3.480760210147073*^9}, {3.480760285603793*^9, 3.4807602892909627`*^9}, 
   3.480760331584048*^9, 3.483026964640625*^9, {3.483027180765625*^9, 
   3.483027244046875*^9}, {3.4873878032782784`*^9, 3.4873878199976707`*^9}, 
   3.4988223817958884`*^9, 3.4988885288318987`*^9, {3.5023520516875*^9, 
   3.50235222190625*^9}, {3.50235391759375*^9, 3.50235391940625*^9}, 
   3.503905029342648*^9, 3.5039111089927917`*^9, {3.503914664843855*^9, 
   3.503914668218855*^9}, {3.50391516520323*^9, 3.503915204718855*^9}, {
   3.5039967133130913`*^9, 3.5039967163764143`*^9}, {3.5039969681607733`*^9, 
   3.503996993616342*^9}, {3.507574582234375*^9, 3.507574588828125*^9}, {
   3.507576286109375*^9, 3.507576354453125*^9}, {3.5077959019375*^9, 
   3.507795944828125*^9}, {3.51568580440625*^9, 3.51568581115625*^9}, 
   3.5159285657593565`*^9, {3.5731473886508317`*^9, 3.57314740313966*^9}, 
   3.573147686398862*^9, {3.573148170711563*^9, 3.5731482286948795`*^9}, 
   3.577606706438896*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"localExpressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"Av", "==", 
      FractionBox[
       RowBox[{"pi", " ", 
        SuperscriptBox["Dv", "2"]}], "4"]}], ",", "\[IndentingNewLine]", 
     RowBox[{"w", "==", 
      RowBox[{"pi", " ", "frac", " ", "Dv", " ", 
       RowBox[{"Sin", "[", "phi", "]"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"p3", "\[Equal]", "c3"}], ",", "\[IndentingNewLine]", 
     RowBox[{"p4", "\[Equal]", "c4"}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.483027001578125*^9, 3.483027021109375*^9}, {
   3.4873877137123394`*^9, 3.487387727322237*^9}, 3.4988885288318987`*^9, {
   3.503914893406355*^9, 3.50391490070323*^9}, {3.50391509367198*^9, 
   3.503915095406355*^9}, {3.525772523916875*^9, 3.525772528510625*^9}, {
   3.534756520505298*^9, 3.534756559181628*^9}, {3.534756692025055*^9, 
   3.534756695744233*^9}, {3.57190456751803*^9, 3.571904619278921*^9}, {
   3.573144677962789*^9, 3.5731446825110493`*^9}, {3.5731482912764587`*^9, 
   3.573148292495528*^9}, 3.5731497546971617`*^9, {3.577606212840233*^9, 
   3.5776062364068766`*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"kf", "=", 
   RowBox[{"2", " ", "Cq", " ", "w", " ", 
    RowBox[{"Cos", "[", "phi", "]"}], " ", 
    RowBox[{"(", 
     RowBox[{"p1", "-", "p2"}], ")"}]}]}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ke", "=", 
   RowBox[{"ks", "+", "kf"}]}], ";"}]}], "Input",
 CellChangeTimes->{{3.573149759175418*^9, 3.573149768059926*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemEquationsDA", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{
      RowBox[{
       RowBox[{"Bv", " ", 
        RowBox[{"der", "[", " ", "xv", "]"}]}], " ", "+", 
       RowBox[{"ke", " ", "xv"}]}], " ", "==", 
      RowBox[{
       RowBox[{"(", 
        RowBox[{"p3", "-", "p4", "-", "pref"}], ")"}], "Av"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"q2", "==", 
      RowBox[{"xv", "*", "Cq", " ", "w", " ", 
       SqrtBox[
        FractionBox["2.", "rho"]], 
       RowBox[{"signedSquareL", "[", 
        RowBox[{
         RowBox[{"p1", "-", "p2"}], ",", "p0"}], "]"}]}]}]}], 
    "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.478679350421875*^9, 3.4786793594375*^9}, {
   3.47867939090625*^9, 3.478679416*^9}, 3.483026918*^9, 
   3.4873877224157987`*^9, 3.4988885288318987`*^9, {3.5039967325838947`*^9, 
   3.5039967690624475`*^9}, {3.504104403484375*^9, 3.50410440521875*^9}, {
   3.5075701360625*^9, 3.507570153265625*^9}, {3.507570213453125*^9, 
   3.507570214015625*^9}, {3.5075703420625*^9, 3.507570342109375*^9}, 
   3.5076079715712585`*^9, {3.507796204234375*^9, 3.50779621396875*^9}, {
   3.507887076139488*^9, 3.5078870785613317`*^9}, {3.5719046338649464`*^9, 
   3.571904651898578*^9}, 3.571904682880233*^9, {3.572724506299543*^9, 
   3.5727245105057836`*^9}, {3.5731445594490104`*^9, 3.573144562194167*^9}, 
   3.5731447183681*^9, 3.5731517185544877`*^9, {3.5776087121693025`*^9, 
   3.5776087337476172`*^9}, 3.577608780266919*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"p1", "==", 
      RowBox[{"c1e", "-", 
       RowBox[{"Zc1e", " ", "q2"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"p2", "==", 
      RowBox[{"c2e", "+", 
       RowBox[{"Zc2e", " ", "q2"}]}]}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.478679428921875*^9, 3.478679481265625*^9}, 
   3.4873877346662693`*^9, 3.4988885288318987`*^9, {3.5158210639861856`*^9, 
   3.51582106472056*^9}, {3.515900478739354*^9, 3.5159004792862253`*^9}, {
   3.515928580869215*^9, 3.515928582853654*^9}, 3.52577253333875*^9, {
   3.5719211535301576`*^9, 3.5719211557453613`*^9}, {3.573144594916039*^9, 
   3.57314462640184*^9}, 3.5731446879953628`*^9, {3.5731447690099964`*^9, 
   3.573144801970882*^9}, {3.5731515430534496`*^9, 3.57315154462954*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", "=", 
   RowBox[{"{", 
    RowBox[{"xv", ",", "q2", ",", "p1", ",", "p2"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{
  3.504160940796875*^9, {3.504171522859375*^9, 3.504171524921875*^9}, {
   3.507570128828125*^9, 3.507570132078125*^9}, 3.50757021896875*^9, 
   3.507796195640625*^9, 3.507887067686471*^9, 3.571904675095819*^9, {
   3.5731446574486156`*^9, 3.5731446730035057`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", 
    RowBox[{
     RowBox[{"q1", "\[Equal]", 
      RowBox[{"-", "q2"}]}], ",", 
     RowBox[{"q3", "\[Equal]", "0."}], ",", 
     RowBox[{"q4", "\[Equal]", "0."}]}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.571904437694602*^9, 3.5719044499406233`*^9}, {
  3.573144637230459*^9, 3.5731446529073563`*^9}, {3.5731450037174215`*^9, 
  3.5731450263717165`*^9}, {3.5731516830154552`*^9, 3.5731516861856365`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"variableLimits", "=", 
   RowBox[{"{", 
    RowBox[{"{", 
     RowBox[{"xv", ",", "0.", ",", "Xvmax"}], "}"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{3.5078869449067926`*^9}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input",
 CellChangeTimes->{3.5039025691670113`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903251052*^9, 3.573152004191825*^9, 
   3.575860265638668*^9, 3.5758665692841244`*^9, 3.5762148042917356`*^9, {
   3.576214844128736*^9, 3.576214868910736*^9}, 3.5762154632604723`*^9, {
   3.576215571751321*^9, 3.576215578638009*^9}, 3.5762159257037125`*^9, 
   3.5762160062347646`*^9, 3.5762160622193623`*^9, 3.576216161856739*^9, 
   3.576216878860028*^9, 3.5762169645926*^9, 3.5762170202151623`*^9, 
   3.5762171406692057`*^9, {3.5762172020583444`*^9, 3.5762172300001383`*^9}, 
   3.576241232694577*^9, 3.576241309765321*^9, {3.5762413809756913`*^9, 
   3.57624140311213*^9}, 3.5762414787098627`*^9, 3.576241556476*^9, 
   3.576836871993907*^9, 3.5768384250448823`*^9, 3.577450731564205*^9, 
   3.5774511276948137`*^9, 3.57745120626367*^9, 3.5774515262830524`*^9, 
   3.577451583090371*^9, 3.5774517893053627`*^9, {3.577605599216198*^9, 
   3.577605612365513*^9}, 3.577606751279896*^9, 3.577607059354896*^9, 
   3.5776088136776*^9, 3.577611870360891*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \
\\\"HydraulicPressureControlValveG\\\"\\)\\), \\(\\(\\\"displayname\\\" \
\[Rule] \\\"HydraulicPressureControlValveG\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicPressureControlValveG.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicPressureControlValveG.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \
\\(\\({\\\"version\\\" \[Rule] \\(\\(\[LeftSkeleton] 5 \
\[RightSkeleton]\\)\\)}\\)\\), \\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\[LeftSkeleton] 1 \[RightSkeleton]\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicPressureControlValveG.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicPressureControlValveG.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\
\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.2`\\)\\), \\(\\(\
\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P1\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.4`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(\[LeftSkeleton] 4 \[RightSkeleton]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \
\\\"0.666667\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \\\"1\\\"\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"90\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"dxv\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\
\\)\\)\\)]\\)\\)\\)\\)]\\)\[NoBreak] is not a list of contents. The third \
item in an XMLElement must be a list of contents, even if it is an empty \
list. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903251052*^9, 3.573152004191825*^9, 
   3.575860265638668*^9, 3.5758665692841244`*^9, 3.5762148042917356`*^9, {
   3.576214844128736*^9, 3.576214868910736*^9}, 3.5762154632604723`*^9, {
   3.576215571751321*^9, 3.576215578638009*^9}, 3.5762159257037125`*^9, 
   3.5762160062347646`*^9, 3.5762160622193623`*^9, 3.576216161856739*^9, 
   3.576216878860028*^9, 3.5762169645926*^9, 3.5762170202151623`*^9, 
   3.5762171406692057`*^9, {3.5762172020583444`*^9, 3.5762172300001383`*^9}, 
   3.576241232694577*^9, 3.576241309765321*^9, {3.5762413809756913`*^9, 
   3.57624140311213*^9}, 3.5762414787098627`*^9, 3.576241556476*^9, 
   3.576836871993907*^9, 3.5768384250448823`*^9, 3.577450731564205*^9, 
   3.5774511276948137`*^9, 3.57745120626367*^9, 3.5774515262830524`*^9, 
   3.577451583090371*^9, 3.5774517893053627`*^9, {3.577605599216198*^9, 
   3.577605612365513*^9}, 3.577606751279896*^9, 3.577607059354896*^9, 
   3.5776088136776*^9, 3.5776118703868933`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903251052*^9, 3.573152004191825*^9, 
   3.575860265638668*^9, 3.5758665692841244`*^9, 3.5762148042917356`*^9, {
   3.576214844128736*^9, 3.576214868910736*^9}, 3.5762154632604723`*^9, {
   3.576215571751321*^9, 3.576215578638009*^9}, 3.5762159257037125`*^9, 
   3.5762160062347646`*^9, 3.5762160622193623`*^9, 3.576216161856739*^9, 
   3.576216878860028*^9, 3.5762169645926*^9, 3.5762170202151623`*^9, 
   3.5762171406692057`*^9, {3.5762172020583444`*^9, 3.5762172300001383`*^9}, 
   3.576241232694577*^9, 3.576241309765321*^9, {3.5762413809756913`*^9, 
   3.57624140311213*^9}, 3.5762414787098627`*^9, 3.576241556476*^9, 
   3.576836871993907*^9, 3.5768384250448823`*^9, 3.577450731564205*^9, 
   3.5774511276948137`*^9, 3.57745120626367*^9, 3.5774515262830524`*^9, 
   3.577451583090371*^9, 3.5774517893053627`*^9, {3.577605599216198*^9, 
   3.577605612365513*^9}, 3.577606751279896*^9, 3.577607059354896*^9, 
   3.5776088136776*^9, 3.5776118703878937`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.2`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.2`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903251052*^9, 3.573152004191825*^9, 
   3.575860265638668*^9, 3.5758665692841244`*^9, 3.5762148042917356`*^9, {
   3.576214844128736*^9, 3.576214868910736*^9}, 3.5762154632604723`*^9, {
   3.576215571751321*^9, 3.576215578638009*^9}, 3.5762159257037125`*^9, 
   3.5762160062347646`*^9, 3.5762160622193623`*^9, 3.576216161856739*^9, 
   3.576216878860028*^9, 3.5762169645926*^9, 3.5762170202151623`*^9, 
   3.5762171406692057`*^9, {3.5762172020583444`*^9, 3.5762172300001383`*^9}, 
   3.576241232694577*^9, 3.576241309765321*^9, {3.5762413809756913`*^9, 
   3.57624140311213*^9}, 3.5762414787098627`*^9, 3.576241556476*^9, 
   3.576836871993907*^9, 3.5768384250448823`*^9, 3.577450731564205*^9, 
   3.5774511276948137`*^9, 3.57745120626367*^9, 3.5774515262830524`*^9, 
   3.577451583090371*^9, 3.5774517893053627`*^9, {3.577605599216198*^9, 
   3.577605612365513*^9}, 3.577606751279896*^9, 3.577607059354896*^9, 
   3.5776088136776*^9, 3.5776118703888936`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903251052*^9, 3.573152004191825*^9, 
   3.575860265638668*^9, 3.5758665692841244`*^9, 3.5762148042917356`*^9, {
   3.576214844128736*^9, 3.576214868910736*^9}, 3.5762154632604723`*^9, {
   3.576215571751321*^9, 3.576215578638009*^9}, 3.5762159257037125`*^9, 
   3.5762160062347646`*^9, 3.5762160622193623`*^9, 3.576216161856739*^9, 
   3.576216878860028*^9, 3.5762169645926*^9, 3.5762170202151623`*^9, 
   3.5762171406692057`*^9, {3.5762172020583444`*^9, 3.5762172300001383`*^9}, 
   3.576241232694577*^9, 3.576241309765321*^9, {3.5762413809756913`*^9, 
   3.57624140311213*^9}, 3.5762414787098627`*^9, 3.576241556476*^9, 
   3.576836871993907*^9, 3.5768384250448823`*^9, 3.577450731564205*^9, 
   3.5774511276948137`*^9, 3.57745120626367*^9, 3.5774515262830524`*^9, 
   3.577451583090371*^9, 3.5774517893053627`*^9, {3.577605599216198*^9, 
   3.577605612365513*^9}, 3.577606751279896*^9, 3.577607059354896*^9, 
   3.5776088136776*^9, 3.5776118703898935`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.4`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.4`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903251052*^9, 3.573152004191825*^9, 
   3.575860265638668*^9, 3.5758665692841244`*^9, 3.5762148042917356`*^9, {
   3.576214844128736*^9, 3.576214868910736*^9}, 3.5762154632604723`*^9, {
   3.576215571751321*^9, 3.576215578638009*^9}, 3.5762159257037125`*^9, 
   3.5762160062347646`*^9, 3.5762160622193623`*^9, 3.576216161856739*^9, 
   3.576216878860028*^9, 3.5762169645926*^9, 3.5762170202151623`*^9, 
   3.5762171406692057`*^9, {3.5762172020583444`*^9, 3.5762172300001383`*^9}, 
   3.576241232694577*^9, 3.576241309765321*^9, {3.5762413809756913`*^9, 
   3.57624140311213*^9}, 3.5762414787098627`*^9, 3.576241556476*^9, 
   3.576836871993907*^9, 3.5768384250448823`*^9, 3.577450731564205*^9, 
   3.5774511276948137`*^9, 3.57745120626367*^9, 3.5774515262830524`*^9, 
   3.577451583090371*^9, 3.5774517893053627`*^9, {3.577605599216198*^9, 
   3.577605612365513*^9}, 3.577606751279896*^9, 3.577607059354896*^9, 
   3.5776088136776*^9, 3.577611870390894*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903251052*^9, 3.573152004191825*^9, 
   3.575860265638668*^9, 3.5758665692841244`*^9, 3.5762148042917356`*^9, {
   3.576214844128736*^9, 3.576214868910736*^9}, 3.5762154632604723`*^9, {
   3.576215571751321*^9, 3.576215578638009*^9}, 3.5762159257037125`*^9, 
   3.5762160062347646`*^9, 3.5762160622193623`*^9, 3.576216161856739*^9, 
   3.576216878860028*^9, 3.5762169645926*^9, 3.5762170202151623`*^9, 
   3.5762171406692057`*^9, {3.5762172020583444`*^9, 3.5762172300001383`*^9}, 
   3.576241232694577*^9, 3.576241309765321*^9, {3.5762413809756913`*^9, 
   3.57624140311213*^9}, 3.5762414787098627`*^9, 3.576241556476*^9, 
   3.576836871993907*^9, 3.5768384250448823`*^9, 3.577450731564205*^9, 
   3.5774511276948137`*^9, 3.57745120626367*^9, 3.5774515262830524`*^9, 
   3.577451583090371*^9, 3.5774517893053627`*^9, {3.577605599216198*^9, 
   3.577605612365513*^9}, 3.577606751279896*^9, 3.577607059354896*^9, 
   3.5776088136776*^9, 3.577611870390894*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903251052*^9, 3.573152004191825*^9, 
   3.575860265638668*^9, 3.5758665692841244`*^9, 3.5762148042917356`*^9, {
   3.576214844128736*^9, 3.576214868910736*^9}, 3.5762154632604723`*^9, {
   3.576215571751321*^9, 3.576215578638009*^9}, 3.5762159257037125`*^9, 
   3.5762160062347646`*^9, 3.5762160622193623`*^9, 3.576216161856739*^9, 
   3.576216878860028*^9, 3.5762169645926*^9, 3.5762170202151623`*^9, 
   3.5762171406692057`*^9, {3.5762172020583444`*^9, 3.5762172300001383`*^9}, 
   3.576241232694577*^9, 3.576241309765321*^9, {3.5762413809756913`*^9, 
   3.57624140311213*^9}, 3.5762414787098627`*^9, 3.576241556476*^9, 
   3.576836871993907*^9, 3.5768384250448823`*^9, 3.577450731564205*^9, 
   3.5774511276948137`*^9, 3.57745120626367*^9, 3.5774515262830524`*^9, 
   3.577451583090371*^9, 3.5774517893053627`*^9, {3.577605599216198*^9, 
   3.577605612365513*^9}, 3.577606751279896*^9, 3.577607059354896*^9, 
   3.5776088136776*^9, 3.5776118703918943`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.6000000000000001`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.6000000000000001`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903251052*^9, 3.573152004191825*^9, 
   3.575860265638668*^9, 3.5758665692841244`*^9, 3.5762148042917356`*^9, {
   3.576214844128736*^9, 3.576214868910736*^9}, 3.5762154632604723`*^9, {
   3.576215571751321*^9, 3.576215578638009*^9}, 3.5762159257037125`*^9, 
   3.5762160062347646`*^9, 3.5762160622193623`*^9, 3.576216161856739*^9, 
   3.576216878860028*^9, 3.5762169645926*^9, 3.5762170202151623`*^9, 
   3.5762171406692057`*^9, {3.5762172020583444`*^9, 3.5762172300001383`*^9}, 
   3.576241232694577*^9, 3.576241309765321*^9, {3.5762413809756913`*^9, 
   3.57624140311213*^9}, 3.5762414787098627`*^9, 3.576241556476*^9, 
   3.576836871993907*^9, 3.5768384250448823`*^9, 3.577450731564205*^9, 
   3.5774511276948137`*^9, 3.57745120626367*^9, 3.5774515262830524`*^9, 
   3.577451583090371*^9, 3.5774517893053627`*^9, {3.577605599216198*^9, 
   3.577605612365513*^9}, 3.577606751279896*^9, 3.577607059354896*^9, 
   3.5776088136776*^9, 3.577611870392894*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903251052*^9, 3.573152004191825*^9, 
   3.575860265638668*^9, 3.5758665692841244`*^9, 3.5762148042917356`*^9, {
   3.576214844128736*^9, 3.576214868910736*^9}, 3.5762154632604723`*^9, {
   3.576215571751321*^9, 3.576215578638009*^9}, 3.5762159257037125`*^9, 
   3.5762160062347646`*^9, 3.5762160622193623`*^9, 3.576216161856739*^9, 
   3.576216878860028*^9, 3.5762169645926*^9, 3.5762170202151623`*^9, 
   3.5762171406692057`*^9, {3.5762172020583444`*^9, 3.5762172300001383`*^9}, 
   3.576241232694577*^9, 3.576241309765321*^9, {3.5762413809756913`*^9, 
   3.57624140311213*^9}, 3.5762414787098627`*^9, 3.576241556476*^9, 
   3.576836871993907*^9, 3.5768384250448823`*^9, 3.577450731564205*^9, 
   3.5774511276948137`*^9, 3.57745120626367*^9, 3.5774515262830524`*^9, 
   3.577451583090371*^9, 3.5774517893053627`*^9, {3.577605599216198*^9, 
   3.577605612365513*^9}, 3.577606751279896*^9, 3.577607059354896*^9, 
   3.5776088136776*^9, 3.577611870393894*^9}],

Cell[BoxData["\<\"HydraulicPressureControlValveG.xml\"\>"], "Output",
 CellChangeTimes->{
  3.533153910703125*^9, 3.533154006515625*^9, 3.533273391423853*^9, 
   3.5347564611703386`*^9, 3.5347566009833183`*^9, 3.5347567087301044`*^9, 
   3.5381370220280676`*^9, 3.538722952228875*^9, 3.538977591599161*^9, 
   3.554715620905321*^9, 3.5719772226517305`*^9, 3.5731451212541437`*^9, 
   3.5731452366577444`*^9, 3.5731519032830534`*^9, 3.5731520042318277`*^9, 
   3.575860265685446*^9, 3.575866569689724*^9, 3.576214804325736*^9, {
   3.576214844165736*^9, 3.576214868949736*^9}, 3.576215463298476*^9, {
   3.576215571782324*^9, 3.5762155786730127`*^9}, 3.576215925751717*^9, 
   3.576216006282769*^9, 3.5762160622773685`*^9, 3.5762161619337387`*^9, 
   3.5762168789230337`*^9, 3.576216964633604*^9, 3.576217020276168*^9, 
   3.5762171407042093`*^9, {3.5762172021343517`*^9, 3.576217230059144*^9}, 
   3.576241232725777*^9, 3.576241309812121*^9, {3.5762413810224915`*^9, 
   3.5762414031433306`*^9}, 3.576241478741063*^9, 3.5762415565071993`*^9, 
   3.576836872151907*^9, 3.576838425086887*^9, 3.577450731575206*^9, 
   3.5774511277058153`*^9, 3.577451206303674*^9, 3.577451526325048*^9, 
   3.577451583130367*^9, 3.577451789360363*^9, {3.577605599276204*^9, 
   3.5776056124005165`*^9}, 3.5776067513118963`*^9, 3.5776070593918962`*^9, 
   3.577608813717608*^9, 3.577611870394894*^9}]
}, Open  ]],

Cell[BoxData[
 RowBox[{
  RowBox[{"path", "=", 
   RowBox[{"ToFileName", "[", 
    RowBox[{"{", 
     RowBox[{
     "\"\<C:\>\"", ",", "\"\<HopsanTrunk\>\"", ",", "\"\<HOPSAN++\>\"", ",", 
      "\"\<componentLibraries\>\"", ",", "\"\<defaultLibrary\>\"", ",", 
      "\"\<Hydraulic\>\"", ",", "\"\<Volumes&Lines\>\""}], "}"}], "]"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.5757727777685804`*^9, 3.575772792541806*^9}, {
   3.5757728423954945`*^9, 3.5757728498367076`*^9}, {3.57577333888545*^9, 
   3.5757733706315055`*^9}, 3.5757734316206255`*^9, {3.575776746610216*^9, 
   3.57577674854722*^9}, {3.5758034373456383`*^9, 3.5758034687537785`*^9}, {
   3.576215299790524*^9, 3.576215340163597*^9}, {3.5762155444425898`*^9, 
   3.576215547684914*^9}, 3.5762159940865498`*^9, 3.5762161254666862`*^9, 
   3.577606818511896*^9}]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell["PressureReducingValveG", "Section",
 CellChangeTimes->{{3.4785828348125*^9, 3.47858284740625*^9}, 
   3.47867904165625*^9, {3.483026885*^9, 3.483026890359375*^9}, 
   3.4988885288318987`*^9, {3.507886987593746*^9, 3.507887015359016*^9}, 
   3.507887177638189*^9, {3.572724409593012*^9, 3.572724410652072*^9}}],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<PressureReducingValveG\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{
  "brief", "=", 
   "\"\<A hydraulic pressure relief valve based on geometry\>\""}], 
  ";"}], "\n", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.507887022343302*^9, 
   3.507887057967846*^9}, {3.5078871702320337`*^9, 3.507887175028847*^9}, {
   3.5158208831437864`*^9, 3.51582092036206*^9}, 3.52267078596875*^9, {
   3.5727244220517244`*^9, 3.5727244258479414`*^9}, 3.5758601094265933`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Upstream port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Downstream port\>\""}], "]"}]}],
     "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.4752292939381866`*^9, 3.4752293318441935`*^9}, {
   3.47808399728125*^9, 3.478083998921875*^9}, 3.4988885288475237`*^9, {
   3.50394176215625*^9, 3.503941811890625*^9}, {3.507576389140625*^9, 
   3.507576508765625*^9}, {3.50757655321875*^9, 3.507576570375*^9}, {
   3.507796238859375*^9, 3.50779624034375*^9}, {3.5156830475625*^9, 
   3.515683050984375*^9}, {3.538136856098759*^9, 3.5381369597752786`*^9}, {
   3.5719055396181374`*^9, 3.5719055424261427`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputVariables", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{"{", 
     RowBox[{"pref", ",", 
      RowBox[{"1.", "*", 
       RowBox[{"10", "^", "7"}]}], ",", "double", ",", "\"\<Pa\>\"", ",", 
      "\"\<Reference pressure\>\""}], "}"}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.5381369657755475`*^9, 3.5381370104181724`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{
   RowBox[{"outputVariables", "=", 
    RowBox[{"{", "\[IndentingNewLine]", 
     RowBox[{
      RowBox[{"{", 
       RowBox[{
       "xv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
        "\"\<Spool position\>\""}], "}"}], ",", "\[IndentingNewLine]", 
      RowBox[{"{", 
       RowBox[{
       "dxv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
        "\"\<Spool position\>\""}], "}"}]}], "\[IndentingNewLine]", "}"}]}], 
   ";"}], " "}]], "Input",
 CellChangeTimes->{{3.5381369720414534`*^9, 3.5381369916673326`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "rho", ",", "860.", ",", "double", ",", "\"\<kg/m3\>\"", ",", 
       "\"\<oil density\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "visc", ",", "0.03", ",", "double", ",", "\"\<Ns/m2\>\"", ",", 
       "\"\<viscosity \>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Dv", ",", "0.03", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Spool diameter\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "frac", ",", "0.1", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Fraction of spool opening\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Bv", ",", "1000.", ",", "double", ",", "\"\<N/(m s)\>\"", ",", 
       "\"\<Damping\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xvmax", ",", "0.03", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Max spool displacement\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Cq", ",", "0.67", ",", "double", ",", "\"\< \>\"", ",", 
       "\"\<Flow coefficient\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "phi", ",", "0.03", ",", "double", ",", "\"\<rad\>\"", ",", 
       "\"\<Stream angle\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "ks", ",", "100.", ",", "double", ",", "\"\<N/m\>\"", ",", 
       "\"\<Spring constant\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "p0", ",", "100000.", ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Turbulent pressure trans.\>\""}], "}"}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.},
 CellChangeTimes->{{3.4779981058619356`*^9, 3.4779981542683554`*^9}, 
   3.4780017782035847`*^9, {3.478002203430644*^9, 3.478002217153696*^9}, {
   3.478002277203772*^9, 3.4780023021490927`*^9}, {3.4780026209521627`*^9, 
   3.478002664340765*^9}, {3.478021796078125*^9, 3.478021842203125*^9}, {
   3.478021885296875*^9, 3.47802199571875*^9}, {3.47802539628125*^9, 
   3.478025479125*^9}, {3.478026054375*^9, 3.47802606034375*^9}, {
   3.47818056640625*^9, 3.47818064359375*^9}, {3.478184752578125*^9, 
   3.478184788859375*^9}, {3.4781848254375*^9, 3.47818487890625*^9}, {
   3.47818496809375*^9, 3.478184980140625*^9}, {3.478189354859375*^9, 
   3.478189379078125*^9}, {3.478679541453125*^9, 3.478679542*^9}, 
   3.47868324640625*^9, 3.478683514703125*^9, {3.4807602098503075`*^9, 
   3.480760210147073*^9}, {3.480760285603793*^9, 3.4807602892909627`*^9}, 
   3.480760331584048*^9, 3.483026964640625*^9, {3.483027180765625*^9, 
   3.483027244046875*^9}, {3.4873878032782784`*^9, 3.4873878199976707`*^9}, 
   3.4988223817958884`*^9, 3.4988885288318987`*^9, {3.5023520516875*^9, 
   3.50235222190625*^9}, {3.50235391759375*^9, 3.50235391940625*^9}, 
   3.503905029342648*^9, 3.5039111089927917`*^9, {3.503914664843855*^9, 
   3.503914668218855*^9}, {3.50391516520323*^9, 3.503915204718855*^9}, {
   3.5039967133130913`*^9, 3.5039967163764143`*^9}, {3.5039969681607733`*^9, 
   3.503996993616342*^9}, {3.507574582234375*^9, 3.507574588828125*^9}, {
   3.507576286109375*^9, 3.507576354453125*^9}, {3.5077959019375*^9, 
   3.507795944828125*^9}, {3.51568580440625*^9, 3.51568581115625*^9}, 
   3.5159285657593565`*^9, {3.573147641136273*^9, 3.5731476559331193`*^9}, {
   3.5731482493080587`*^9, 3.5731482508341455`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"localExpressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"Av", "==", 
      FractionBox[
       RowBox[{"pi", " ", 
        SuperscriptBox["Dv", "2"]}], "4"]}], ",", "\[IndentingNewLine]", 
     RowBox[{"w", "==", 
      RowBox[{"pi", " ", "frac", " ", "Dv", " ", 
       RowBox[{"Sin", "[", "phi", "]"}]}]}]}], "\[IndentingNewLine]", "}"}]}],
   ";"}]], "Input",
 CellChangeTimes->{{3.483027001578125*^9, 3.483027021109375*^9}, {
   3.4873877137123394`*^9, 3.487387727322237*^9}, 3.4988885288318987`*^9, {
   3.503914893406355*^9, 3.50391490070323*^9}, {3.50391509367198*^9, 
   3.503915095406355*^9}, {3.525772523916875*^9, 3.525772528510625*^9}, {
   3.534756520505298*^9, 3.534756559181628*^9}, {3.534756692025055*^9, 
   3.534756695744233*^9}, {3.57190456751803*^9, 3.571904619278921*^9}, {
   3.573148310137538*^9, 3.5731483108905807`*^9}, 3.573149708071495*^9, {
   3.5731497755273533`*^9, 3.5731497796395884`*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"kf", "=", 
   RowBox[{"2", " ", "Cq", " ", "w", " ", 
    RowBox[{"Cos", "[", "phi", "]"}], " ", 
    RowBox[{"(", 
     RowBox[{"p1", "-", "p2"}], ")"}]}]}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ke", "=", 
   RowBox[{"ks", "+", "kf"}]}], ";"}]}], "Input",
 CellChangeTimes->{{3.573149714210846*^9, 3.5731497291246986`*^9}, {
  3.573149782505752*^9, 3.573149788960121*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemEquationsDA", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{
      RowBox[{
       RowBox[{"Bv", " ", 
        RowBox[{"der", "[", " ", "xv", "]"}]}], " ", "+", 
       RowBox[{"ke", " ", "xv"}]}], " ", "==", 
      RowBox[{
       RowBox[{"(", 
        RowBox[{"pref", "-", "p2"}], ")"}], "Av"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"q2", "==", 
      RowBox[{"xv", "*", "Cq", " ", "w", " ", 
       SqrtBox[
        FractionBox["2.", "rho"]], 
       RowBox[{"signedSquareL", "[", 
        RowBox[{
         RowBox[{"p1", "-", "p2"}], ",", "p0"}], "]"}]}]}]}], "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.478679350421875*^9, 3.4786793594375*^9}, {
   3.47867939090625*^9, 3.478679416*^9}, 3.483026918*^9, 
   3.4873877224157987`*^9, 3.4988885288318987`*^9, {3.5039967325838947`*^9, 
   3.5039967690624475`*^9}, {3.504104403484375*^9, 3.50410440521875*^9}, {
   3.5075701360625*^9, 3.507570153265625*^9}, {3.507570213453125*^9, 
   3.507570214015625*^9}, {3.5075703420625*^9, 3.507570342109375*^9}, 
   3.5076079715712585`*^9, {3.507796204234375*^9, 3.50779621396875*^9}, {
   3.507887076139488*^9, 3.5078870785613317`*^9}, {3.5719046338649464`*^9, 
   3.571904651898578*^9}, 3.571904682880233*^9, {3.572724506299543*^9, 
   3.5727245105057836`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"p1", "==", 
      RowBox[{"c1e", "-", 
       RowBox[{"Zc1e", " ", "q2"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"p2", "==", 
      RowBox[{"c2e", "+", 
       RowBox[{"Zc2e", " ", "q2"}]}]}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.478679428921875*^9, 3.478679481265625*^9}, 
   3.4873877346662693`*^9, 3.4988885288318987`*^9, {3.5158210639861856`*^9, 
   3.51582106472056*^9}, {3.515900478739354*^9, 3.5159004792862253`*^9}, {
   3.515928580869215*^9, 3.515928582853654*^9}, 3.52577253333875*^9, {
   3.5719211535301576`*^9, 3.5719211557453613`*^9}, {3.573144594916039*^9, 
   3.57314462640184*^9}, 3.5731446879953628`*^9, {3.5731447690099964`*^9, 
   3.573144801970882*^9}, {3.5731515555661654`*^9, 3.5731515567032304`*^9}, {
   3.575862407130492*^9, 3.5758624079889097`*^9}, {3.5758624654873085`*^9, 
   3.5758624670012455`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", "=", 
   RowBox[{"{", 
    RowBox[{"xv", ",", "q2", ",", "p1", ",", "p2"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{
  3.504160940796875*^9, {3.504171522859375*^9, 3.504171524921875*^9}, {
   3.507570128828125*^9, 3.507570132078125*^9}, 3.50757021896875*^9, 
   3.507796195640625*^9, 3.507887067686471*^9, 3.571904675095819*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", 
    RowBox[{"q1", "\[Equal]", 
     RowBox[{"-", "q2"}]}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.571904437694602*^9, 3.5719044499406233`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"variableLimits", "=", 
   RowBox[{"{", 
    RowBox[{"{", 
     RowBox[{"xv", ",", "0.", ",", "Xvmax"}], "}"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{3.5078869449067926`*^9}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input",
 CellChangeTimes->{3.5039025691670113`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{3.576241555961199*^9, 3.576836871205907*^9, 
  3.576838272757655*^9, 3.5768384243938174`*^9, 3.577450730502099*^9, 
  3.577451125926637*^9, 3.5774512052655706`*^9, 3.5774515252961507`*^9, 
  3.577451581735506*^9, 3.577451788181363*^9, 3.5776056117604523`*^9, 
  3.5776118706189165`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\(\[LeftSkeleton] 1 \[RightSkeleton]\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicPressureReducingValveG.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicPressureReducingValveG.svg\\\"\\)\\)}\\)\\), \\(\\({}\\)\
\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \\(\\(\
\[LeftSkeleton] 1 \[RightSkeleton]\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \
\[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P1\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.6666666666666666`\\)\\), \\(\\(\\\"a\\\" \[Rule] \
\\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \\(\\({}\
\\)\\)\\)\\)]\\)\\), \\(\\(\\(\\(\[LeftSkeleton] 10 \
\[RightSkeleton]\\)\\)[\\(\\(\[LeftSkeleton] 1 \[RightSkeleton]\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\[LeftSkeleton] 1 \[RightSkeleton]\\)\\)]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \
\\\"0.666667\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \\\"1\\\"\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"90\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"dxv\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\
\\)\\)\\)]\\)\[NoBreak] in \[NoBreak]\\!\\(XMLElement[\\(\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\)]\\)\[NoBreak] is not a list of contents. The third \
item in an XMLElement must be a list of contents, even if it is an empty \
list. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{3.576241555961199*^9, 3.576836871205907*^9, 
  3.576838272757655*^9, 3.5768384243938174`*^9, 3.577450730502099*^9, 
  3.577451125926637*^9, 3.5774512052655706`*^9, 3.5774515252961507`*^9, 
  3.577451581735506*^9, 3.577451788181363*^9, 3.5776056117604523`*^9, 
  3.577611870636918*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{3.576241555961199*^9, 3.576836871205907*^9, 
  3.576838272757655*^9, 3.5768384243938174`*^9, 3.577450730502099*^9, 
  3.577451125926637*^9, 3.5774512052655706`*^9, 3.5774515252961507`*^9, 
  3.577451581735506*^9, 3.577451788181363*^9, 3.5776056117604523`*^9, 
  3.5776118706379185`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.3333333333333333`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.3333333333333333`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{3.576241555961199*^9, 3.576836871205907*^9, 
  3.576838272757655*^9, 3.5768384243938174`*^9, 3.577450730502099*^9, 
  3.577451125926637*^9, 3.5774512052655706`*^9, 3.5774515252961507`*^9, 
  3.577451581735506*^9, 3.577451788181363*^9, 3.5776056117604523`*^9, 
  3.577611870638919*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{3.576241555961199*^9, 3.576836871205907*^9, 
  3.576838272757655*^9, 3.5768384243938174`*^9, 3.577450730502099*^9, 
  3.577451125926637*^9, 3.5774512052655706`*^9, 3.5774515252961507`*^9, 
  3.577451581735506*^9, 3.577451788181363*^9, 3.5776056117604523`*^9, 
  3.577611870639919*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.6666666666666666`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.6666666666666666`\\)\[NoBreak] is not a \
valid value for an attribute in an XMLElement. The value of the attribute \
must be a string. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{3.576241555961199*^9, 3.576836871205907*^9, 
  3.576838272757655*^9, 3.5768384243938174`*^9, 3.577450730502099*^9, 
  3.577451125926637*^9, 3.5774512052655706`*^9, 3.5774515252961507`*^9, 
  3.577451581735506*^9, 3.577451788181363*^9, 3.5776056117604523`*^9, 
  3.5776118706409187`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{3.576241555961199*^9, 3.576836871205907*^9, 
  3.576838272757655*^9, 3.5768384243938174`*^9, 3.577450730502099*^9, 
  3.577451125926637*^9, 3.5774512052655706`*^9, 3.5774515252961507`*^9, 
  3.577451581735506*^9, 3.577451788181363*^9, 3.5776056117604523`*^9, 
  3.577611870642919*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{3.576241555961199*^9, 3.576836871205907*^9, 
  3.576838272757655*^9, 3.5768384243938174`*^9, 3.577450730502099*^9, 
  3.577451125926637*^9, 3.5774512052655706`*^9, 3.5774515252961507`*^9, 
  3.577451581735506*^9, 3.577451788181363*^9, 3.5776056117604523`*^9, 
  3.577611870642919*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.5`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"x\
\\\" \[Rule] 0.5`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{3.576241555961199*^9, 3.576836871205907*^9, 
  3.576838272757655*^9, 3.5768384243938174`*^9, 3.577450730502099*^9, 
  3.577451125926637*^9, 3.5774512052655706`*^9, 3.5774515252961507`*^9, 
  3.577451581735506*^9, 3.577451788181363*^9, 3.5776056117604523`*^9, 
  3.577611870643919*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{3.576241555961199*^9, 3.576836871205907*^9, 
  3.576838272757655*^9, 3.5768384243938174`*^9, 3.577450730502099*^9, 
  3.577451125926637*^9, 3.5774512052655706`*^9, 3.5774515252961507`*^9, 
  3.577451581735506*^9, 3.577451788181363*^9, 3.5776056117604523`*^9, 
  3.5776118706449194`*^9}],

Cell[BoxData["\<\"HydraulicPressureReducingValveG.xml\"\>"], "Output",
 CellChangeTimes->{3.5762415560079985`*^9, 3.576836871382907*^9, 
  3.5768382729396734`*^9, 3.57683842441982*^9, 3.5774507305090995`*^9, 
  3.5774511259386387`*^9, 3.577451205299574*^9, 3.577451525325148*^9, 
  3.5774515817735023`*^9, 3.577451788218363*^9, 3.5776056117854548`*^9, 
  3.577611870645919*^9}]
}, Open  ]],

Cell[BoxData[
 RowBox[{
  RowBox[{"kf", "=."}], ";", 
  RowBox[{"ke", "=."}], ";"}]], "Input",
 CellChangeTimes->{{3.5762415310479546`*^9, 3.5762415455559807`*^9}}]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell["PressureCompensatingValveG", "Section",
 CellChangeTimes->{{3.4785828348125*^9, 3.47858284740625*^9}, 
   3.47867904165625*^9, {3.483026885*^9, 3.483026890359375*^9}, 
   3.4988885288318987`*^9, {3.507886987593746*^9, 3.507887015359016*^9}, 
   3.507887177638189*^9, {3.572724409593012*^9, 3.572724410652072*^9}, {
   3.5731444722970257`*^9, 3.5731444763132553`*^9}, {3.573144509032127*^9, 
   3.5731445114602656`*^9}}],

Cell[CellGroupData[{

Cell["System model", "Subsection",
 CellChangeTimes->{{3.504161099890625*^9, 3.504161102453125*^9}}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"domain", "=", "\"\<Hydraulic\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"displayName", "=", "\"\<PressureCompensatingValveG\>\""}], 
  ";"}], "\n", 
 RowBox[{
  RowBox[{
  "brief", "=", 
   "\"\<A hydraulic pressure relief valve based on geometry\>\""}], 
  ";"}], "\n", 
 RowBox[{
  RowBox[{"componentType", "=", "\"\<ComponentQ\>\""}], ";"}], "\n", 
 RowBox[{
  RowBox[{"author", "=", "\"\<Petter Krus <petter.krus@liu.se>\>\""}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{
  "affiliation", " ", "=", " ", 
   "\"\<Division of Fluid and Mechatronic Systems, Link\[ODoubleDot]ping \
University\>\""}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"SetFilenames", "[", 
   RowBox[{"path", ",", "domain", ",", "displayName"}], "]"}], 
  ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ResetComponentVariables", "[", "]"}], ";"}]}], "Input",
 CellChangeTimes->{{3.503905077842648*^9, 3.503905079842648*^9}, {
   3.5039103076641607`*^9, 3.5039103985397425`*^9}, {3.5039164662834997`*^9, 
   3.5039164750178747`*^9}, {3.5039165143772497`*^9, 
   3.5039165189397497`*^9}, {3.5041051675625*^9, 3.504105226359375*^9}, {
   3.507570546125*^9, 3.507570569546875*^9}, {3.507570601046875*^9, 
   3.50757067696875*^9}, 3.507796401609375*^9, {3.507887022343302*^9, 
   3.507887057967846*^9}, {3.5078871702320337`*^9, 3.507887175028847*^9}, {
   3.5158208831437864`*^9, 3.51582092036206*^9}, 3.52267078596875*^9, {
   3.5727244220517244`*^9, 3.5727244258479414`*^9}, {3.5731445197087374`*^9, 
   3.5731445222458825`*^9}, 3.5758601161469173`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"nodeConnections", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"1", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Upstream port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"2", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Downstream port\>\""}], "]"}], 
     ",", "\[IndentingNewLine]", 
     RowBox[{"HydraulicQnode", "[", 
      RowBox[{"3", ",", 
       RowBox[{"1.", "*", 
        RowBox[{"10", "^", "5"}]}], ",", "\"\<Downstream port\>\""}], "]"}]}],
     "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.4752292939381866`*^9, 3.4752293318441935`*^9}, {
   3.47808399728125*^9, 3.478083998921875*^9}, 3.4988885288475237`*^9, {
   3.50394176215625*^9, 3.503941811890625*^9}, {3.507576389140625*^9, 
   3.507576508765625*^9}, {3.50757655321875*^9, 3.507576570375*^9}, {
   3.507796238859375*^9, 3.50779624034375*^9}, {3.5156830475625*^9, 
   3.515683050984375*^9}, {3.538136856098759*^9, 3.5381369597752786`*^9}, {
   3.5719055396181374`*^9, 3.5719055424261427`*^9}, {3.5731449671873317`*^9, 
   3.5731449722026186`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputVariables", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{"{", 
     RowBox[{"pref", ",", 
      RowBox[{"1.", "*", 
       RowBox[{"10", "^", "6"}]}], ",", "double", ",", "\"\<Pa\>\"", ",", 
      "\"\<Reference pressure\>\""}], "}"}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.5381369657755475`*^9, 3.5381370104181724`*^9}, 
   3.5731449806651025`*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{
   RowBox[{"outputVariables", "=", 
    RowBox[{"{", "\[IndentingNewLine]", 
     RowBox[{
      RowBox[{"{", 
       RowBox[{
       "xv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
        "\"\<Spool position\>\""}], "}"}], ",", "\[IndentingNewLine]", 
      RowBox[{"{", 
       RowBox[{
       "dxv", ",", "0.", ",", "double", ",", "\"\<m\>\"", ",", 
        "\"\<Spool position\>\""}], "}"}]}], "\[IndentingNewLine]", "}"}]}], 
   ";"}], " "}]], "Input",
 CellChangeTimes->{{3.5381369720414534`*^9, 3.5381369916673326`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"inputParameters", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"{", 
      RowBox[{
      "rho", ",", "860.", ",", "double", ",", "\"\<kg/m3\>\"", ",", 
       "\"\<oil density\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "visc", ",", "0.03", ",", "double", ",", "\"\<Ns/m2\>\"", ",", 
       "\"\<viscosity \>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Dv", ",", "0.03", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Spool diameter\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "frac", ",", "0.1", ",", "double", ",", "\"\<\>\"", ",", 
       "\"\<Fraction of spool opening\>\""}], "}"}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Bv", ",", "1000.", ",", "double", ",", "\"\<N/(m s)\>\"", ",", 
       "\"\<Damping\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Xvmax", ",", "0.03", ",", "double", ",", "\"\<m\>\"", ",", 
       "\"\<Max spool displacement\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "Cq", ",", "0.67", ",", "double", ",", "\"\< \>\"", ",", 
       "\"\<Flow coefficient\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "phi", ",", "0.03", ",", "double", ",", "\"\<rad\>\"", ",", 
       "\"\<Stream angle\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "ks", ",", "100.", ",", "double", ",", "\"\<N/m\>\"", ",", 
       "\"\<Spring constant\>\""}], "}"}], ",", "\[IndentingNewLine]", 
     RowBox[{"{", 
      RowBox[{
      "p0", ",", "100000.", ",", "double", ",", "\"\<Pa\>\"", ",", 
       "\"\<Turbulent pressure trans.\>\""}], "}"}]}], "\[IndentingNewLine]", 
    "}"}]}], ";"}]], "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.},
 CellChangeTimes->{{3.4779981058619356`*^9, 3.4779981542683554`*^9}, 
   3.4780017782035847`*^9, {3.478002203430644*^9, 3.478002217153696*^9}, {
   3.478002277203772*^9, 3.4780023021490927`*^9}, {3.4780026209521627`*^9, 
   3.478002664340765*^9}, {3.478021796078125*^9, 3.478021842203125*^9}, {
   3.478021885296875*^9, 3.47802199571875*^9}, {3.47802539628125*^9, 
   3.478025479125*^9}, {3.478026054375*^9, 3.47802606034375*^9}, {
   3.47818056640625*^9, 3.47818064359375*^9}, {3.478184752578125*^9, 
   3.478184788859375*^9}, {3.4781848254375*^9, 3.47818487890625*^9}, {
   3.47818496809375*^9, 3.478184980140625*^9}, {3.478189354859375*^9, 
   3.478189379078125*^9}, {3.478679541453125*^9, 3.478679542*^9}, 
   3.47868324640625*^9, 3.478683514703125*^9, {3.4807602098503075`*^9, 
   3.480760210147073*^9}, {3.480760285603793*^9, 3.4807602892909627`*^9}, 
   3.480760331584048*^9, 3.483026964640625*^9, {3.483027180765625*^9, 
   3.483027244046875*^9}, {3.4873878032782784`*^9, 3.4873878199976707`*^9}, 
   3.4988223817958884`*^9, 3.4988885288318987`*^9, {3.5023520516875*^9, 
   3.50235222190625*^9}, {3.50235391759375*^9, 3.50235391940625*^9}, 
   3.503905029342648*^9, 3.5039111089927917`*^9, {3.503914664843855*^9, 
   3.503914668218855*^9}, {3.50391516520323*^9, 3.503915204718855*^9}, {
   3.5039967133130913`*^9, 3.5039967163764143`*^9}, {3.5039969681607733`*^9, 
   3.503996993616342*^9}, {3.507574582234375*^9, 3.507574588828125*^9}, {
   3.507576286109375*^9, 3.507576354453125*^9}, {3.5077959019375*^9, 
   3.507795944828125*^9}, {3.51568580440625*^9, 3.51568581115625*^9}, 
   3.5159285657593565`*^9, {3.5731473886508317`*^9, 3.57314740313966*^9}, 
   3.573147686398862*^9, {3.573148170711563*^9, 3.5731482286948795`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"localExpressions", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"Av", "==", 
      FractionBox[
       RowBox[{"pi", " ", 
        SuperscriptBox["Dv", "2"]}], "4"]}], ",", "\[IndentingNewLine]", 
     RowBox[{"w", "==", 
      RowBox[{"pi", " ", "frac", " ", "Dv", " ", 
       RowBox[{"Sin", "[", "phi", "]"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"p3", "\[Equal]", "c3"}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.483027001578125*^9, 3.483027021109375*^9}, {
   3.4873877137123394`*^9, 3.487387727322237*^9}, 3.4988885288318987`*^9, {
   3.503914893406355*^9, 3.50391490070323*^9}, {3.50391509367198*^9, 
   3.503915095406355*^9}, {3.525772523916875*^9, 3.525772528510625*^9}, {
   3.534756520505298*^9, 3.534756559181628*^9}, {3.534756692025055*^9, 
   3.534756695744233*^9}, {3.57190456751803*^9, 3.571904619278921*^9}, {
   3.573144677962789*^9, 3.5731446825110493`*^9}, {3.5731482912764587`*^9, 
   3.573148292495528*^9}, 3.5731497546971617`*^9}],

Cell[BoxData[{
 RowBox[{
  RowBox[{"kf", "=", 
   RowBox[{"2", " ", "Cq", " ", "w", " ", 
    RowBox[{"Cos", "[", "phi", "]"}], " ", 
    RowBox[{"(", 
     RowBox[{"p1", "-", "p2"}], ")"}]}]}], ";"}], "\[IndentingNewLine]", 
 RowBox[{
  RowBox[{"ke", "=", 
   RowBox[{"ks", "+", "kf"}]}], ";"}]}], "Input",
 CellChangeTimes->{{3.573149759175418*^9, 3.573149768059926*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemEquationsDA", "=", " ", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{
      RowBox[{
       RowBox[{"Bv", " ", 
        RowBox[{"der", "[", " ", "xv", "]"}]}], " ", "+", 
       RowBox[{"ke", " ", "xv"}]}], " ", "==", 
      RowBox[{
       RowBox[{"(", 
        RowBox[{"pref", "-", "p2", "+", "p3"}], ")"}], "Av"}]}], ",", 
     "\[IndentingNewLine]", 
     RowBox[{"q2", "==", 
      RowBox[{"xv", "*", "Cq", " ", "w", " ", 
       SqrtBox[
        FractionBox["2.", "rho"]], 
       RowBox[{"signedSquareL", "[", 
        RowBox[{
         RowBox[{"p1", "-", "p2"}], ",", "p0"}], "]"}]}]}]}], 
    "\[IndentingNewLine]", "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.478679350421875*^9, 3.4786793594375*^9}, {
   3.47867939090625*^9, 3.478679416*^9}, 3.483026918*^9, 
   3.4873877224157987`*^9, 3.4988885288318987`*^9, {3.5039967325838947`*^9, 
   3.5039967690624475`*^9}, {3.504104403484375*^9, 3.50410440521875*^9}, {
   3.5075701360625*^9, 3.507570153265625*^9}, {3.507570213453125*^9, 
   3.507570214015625*^9}, {3.5075703420625*^9, 3.507570342109375*^9}, 
   3.5076079715712585`*^9, {3.507796204234375*^9, 3.50779621396875*^9}, {
   3.507887076139488*^9, 3.5078870785613317`*^9}, {3.5719046338649464`*^9, 
   3.571904651898578*^9}, 3.571904682880233*^9, {3.572724506299543*^9, 
   3.5727245105057836`*^9}, {3.5731445594490104`*^9, 3.573144562194167*^9}, 
   3.5731447183681*^9}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemBoundaryEquations", "=", 
   RowBox[{"{", "\[IndentingNewLine]", 
    RowBox[{
     RowBox[{"p1", "==", 
      RowBox[{"c1e", "-", 
       RowBox[{"Zc1e", " ", "q2"}]}]}], ",", "\[IndentingNewLine]", 
     RowBox[{"p2", "==", 
      RowBox[{"c2e", "+", 
       RowBox[{"Zc2e", " ", "q2"}]}]}]}], "\[IndentingNewLine]", "}"}]}], 
  ";"}]], "Input",
 CellChangeTimes->{{3.478679428921875*^9, 3.478679481265625*^9}, 
   3.4873877346662693`*^9, 3.4988885288318987`*^9, {3.5158210639861856`*^9, 
   3.51582106472056*^9}, {3.515900478739354*^9, 3.5159004792862253`*^9}, {
   3.515928580869215*^9, 3.515928582853654*^9}, 3.52577253333875*^9, {
   3.5719211535301576`*^9, 3.5719211557453613`*^9}, {3.573144594916039*^9, 
   3.57314462640184*^9}, 3.5731446879953628`*^9, {3.5731447690099964`*^9, 
   3.573144801970882*^9}, {3.5731515430534496`*^9, 3.57315154462954*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"systemVariables", "=", 
   RowBox[{"{", 
    RowBox[{"xv", ",", "q2", ",", "p1", ",", "p2"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{
  3.504160940796875*^9, {3.504171522859375*^9, 3.504171524921875*^9}, {
   3.507570128828125*^9, 3.507570132078125*^9}, 3.50757021896875*^9, 
   3.507796195640625*^9, 3.507887067686471*^9, 3.571904675095819*^9, {
   3.5731446574486156`*^9, 3.5731446730035057`*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"expressions", "=", 
   RowBox[{"{", 
    RowBox[{
     RowBox[{"q1", "\[Equal]", 
      RowBox[{"-", "q2"}]}], ",", 
     RowBox[{"q3", "\[Equal]", "0."}], ",", 
     RowBox[{"q4", "\[Equal]", "0."}]}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{{3.571904437694602*^9, 3.5719044499406233`*^9}, {
  3.573144637230459*^9, 3.5731446529073563`*^9}, {3.5731450037174215`*^9, 
  3.5731450263717165`*^9}, {3.577606967026896*^9, 3.577606969897896*^9}}],

Cell[BoxData[
 RowBox[{
  RowBox[{"variableLimits", "=", 
   RowBox[{"{", 
    RowBox[{"{", 
     RowBox[{"xv", ",", "0.", ",", "Xvmax"}], "}"}], "}"}]}], ";"}]], "Input",
 CellChangeTimes->{3.5078869449067926`*^9}],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Compgen", "[", "file", "]"}]], "Input",
 CellChangeTimes->{3.5039025691670113`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Part", "::", "partd"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Part specification \[NoBreak]\\!\\(delayedPart \
\[LeftDoubleBracket] \\(\\(1, 1\\)\\) \[RightDoubleBracket]\\)\[NoBreak] is \
longer than depth of object. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/partd\\\", ButtonNote -> \
\\\"Part::partd\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903064041*^9, 3.5731520040018144`*^9, 
   3.575860265420375*^9, 3.576214804047736*^9, {3.576214843905736*^9, 
   3.576214868679736*^9}, 3.57621546303045*^9, {3.576215571615307*^9, 
   3.576215578406986*^9}, 3.5762159252566676`*^9, 3.5762160058517265`*^9, 
   3.5762160617593164`*^9, 3.576216161484739*^9, 3.5762168784779897`*^9, 
   3.576216964165558*^9, 3.5762170197791185`*^9, 3.576217140158155*^9, {
   3.5762172016283016`*^9, 3.5762172295740957`*^9}, 3.5762412324761767`*^9, 
   3.57624130948452*^9, {3.576241380694891*^9, 3.5762414027689295`*^9}, 
   3.5762414784290624`*^9, 3.576241556210799*^9, 3.576836871529907*^9, 
   3.576838273098689*^9, 3.576838424766855*^9, 3.577450730886137*^9, 
   3.5774511266797123`*^9, 3.5774512056226063`*^9, 3.577451525637117*^9, 
   3.5774515827944*^9, 3.577451788678363*^9, 3.5776056121154876`*^9, 
   3.577611870861941*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "cntsList"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"modelobject\\\", \
\\(\\({\\(\\(\\\"typename\\\" \[Rule] \\\"HydraulicPressureCompensatingValveG\
\\\"\\)\\), \\(\\(\\\"displayname\\\" \[Rule] \
\\\"HydraulicPressureCompensatingValveG\\\"\\)\\)}\\)\\), \
\\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \\(\\({\\(\\(\\\"isopath\\\" \
\[Rule] \\\"HydraulicPressureCompensatingValveG.svg\\\"\\)\\), \
\\(\\(\\\"iconrotation\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \
\[Rule] \\\"HydraulicPressureCompensatingValveG.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\[NoBreak] in \
\[NoBreak]\\!\\(XMLElement[\\(\\(\\\"hopsanobjectappearance\\\", \\(\\({\\(\
\[LeftSkeleton] 1 \[RightSkeleton]\\)}\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"modelobject\\\", \\(\\(\[LeftSkeleton] 1 \
\[RightSkeleton]\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"icon\\\", \
\\(\\({\\(\\(\\\"isopath\\\" \[Rule] \
\\\"HydraulicPressureCompensatingValveG.svg\\\"\\)\\), \\(\\(\\\"iconrotation\
\\\" \[Rule] \\\"ON\\\"\\)\\), \\(\\(\\\"userpath\\\" \[Rule] \
\\\"HydraulicPressureCompensatingValveG.svg\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\\\"portpositions\\\", \
\\(\\({}\\)\\), \\(\\({\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\
\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] 0.25`\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"P1\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(XMLElement[\\(\\(\
\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \\\"0\\\"\\)\\), \\(\\(\\\"y\
\\\" \[Rule] 0.5`\\)\\), \\(\\(\\\"a\\\" \[Rule] \\\"0\\\"\\)\\), \
\\(\\(\\\"name\\\" \[Rule] \\\"P2\\\"\\)\\)}\\)\\), \
\\(\\({}\\)\\)\\)\\)]\\)\\), \\(\\(\[LeftSkeleton] 3 \[RightSkeleton]\\)\\), \
\\(\\(XMLElement[\\(\\(\\\"portpose\\\", \\(\\({\\(\\(\\\"x\\\" \[Rule] \
\\\"0.666667\\\"\\)\\), \\(\\(\\\"y\\\" \[Rule] \\\"1\\\"\\)\\), \
\\(\\(\\\"a\\\" \[Rule] \\\"90\\\"\\)\\), \\(\\(\\\"name\\\" \[Rule] \
\\\"dxv\\\"\\)\\)}\\)\\), \\(\\({}\\)\\)\\)\\)]\\)\\)}\\)\\)\\)\\)]\\)\\)}\\)\
\\)\\)\\)]\\)\\)\\)\\)]\\)\[NoBreak] is not a list of contents. The third \
item in an XMLElement must be a list of contents, even if it is an empty \
list. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::cntsList\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903064041*^9, 3.5731520040018144`*^9, 
   3.575860265420375*^9, 3.576214804047736*^9, {3.576214843905736*^9, 
   3.576214868679736*^9}, 3.57621546303045*^9, {3.576215571615307*^9, 
   3.576215578406986*^9}, 3.5762159252566676`*^9, 3.5762160058517265`*^9, 
   3.5762160617593164`*^9, 3.576216161484739*^9, 3.5762168784779897`*^9, 
   3.576216964165558*^9, 3.5762170197791185`*^9, 3.576217140158155*^9, {
   3.5762172016283016`*^9, 3.5762172295740957`*^9}, 3.5762412324761767`*^9, 
   3.57624130948452*^9, {3.576241380694891*^9, 3.5762414027689295`*^9}, 
   3.5762414784290624`*^9, 3.576241556210799*^9, 3.576836871529907*^9, 
   3.576838273098689*^9, 3.576838424766855*^9, 3.577450730886137*^9, 
   3.5774511266797123`*^9, 3.5774512056226063`*^9, 3.577451525637117*^9, 
   3.5774515827944*^9, 3.577451788678363*^9, 3.5776056121154876`*^9, 
   3.577611870880943*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903064041*^9, 3.5731520040018144`*^9, 
   3.575860265420375*^9, 3.576214804047736*^9, {3.576214843905736*^9, 
   3.576214868679736*^9}, 3.57621546303045*^9, {3.576215571615307*^9, 
   3.576215578406986*^9}, 3.5762159252566676`*^9, 3.5762160058517265`*^9, 
   3.5762160617593164`*^9, 3.576216161484739*^9, 3.5762168784779897`*^9, 
   3.576216964165558*^9, 3.5762170197791185`*^9, 3.576217140158155*^9, {
   3.5762172016283016`*^9, 3.5762172295740957`*^9}, 3.5762412324761767`*^9, 
   3.57624130948452*^9, {3.576241380694891*^9, 3.5762414027689295`*^9}, 
   3.5762414784290624`*^9, 3.576241556210799*^9, 3.576836871529907*^9, 
   3.576838273098689*^9, 3.576838424766855*^9, 3.577450730886137*^9, 
   3.5774511266797123`*^9, 3.5774512056226063`*^9, 3.577451525637117*^9, 
   3.5774515827944*^9, 3.577451788678363*^9, 3.5776056121154876`*^9, 
   3.577611870884943*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.25`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.25`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903064041*^9, 3.5731520040018144`*^9, 
   3.575860265420375*^9, 3.576214804047736*^9, {3.576214843905736*^9, 
   3.576214868679736*^9}, 3.57621546303045*^9, {3.576215571615307*^9, 
   3.576215578406986*^9}, 3.5762159252566676`*^9, 3.5762160058517265`*^9, 
   3.5762160617593164`*^9, 3.576216161484739*^9, 3.5762168784779897`*^9, 
   3.576216964165558*^9, 3.5762170197791185`*^9, 3.576217140158155*^9, {
   3.5762172016283016`*^9, 3.5762172295740957`*^9}, 3.5762412324761767`*^9, 
   3.57624130948452*^9, {3.576241380694891*^9, 3.5762414027689295`*^9}, 
   3.5762414784290624`*^9, 3.576241556210799*^9, 3.576836871529907*^9, 
   3.576838273098689*^9, 3.576838424766855*^9, 3.577450730886137*^9, 
   3.5774511266797123`*^9, 3.5774512056226063`*^9, 3.577451525637117*^9, 
   3.5774515827944*^9, 3.577451788678363*^9, 3.5776056121154876`*^9, 
   3.5776118708859434`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903064041*^9, 3.5731520040018144`*^9, 
   3.575860265420375*^9, 3.576214804047736*^9, {3.576214843905736*^9, 
   3.576214868679736*^9}, 3.57621546303045*^9, {3.576215571615307*^9, 
   3.576215578406986*^9}, 3.5762159252566676`*^9, 3.5762160058517265`*^9, 
   3.5762160617593164`*^9, 3.576216161484739*^9, 3.5762168784779897`*^9, 
   3.576216964165558*^9, 3.5762170197791185`*^9, 3.576217140158155*^9, {
   3.5762172016283016`*^9, 3.5762172295740957`*^9}, 3.5762412324761767`*^9, 
   3.57624130948452*^9, {3.576241380694891*^9, 3.5762414027689295`*^9}, 
   3.5762414784290624`*^9, 3.576241556210799*^9, 3.576836871529907*^9, 
   3.576838273098689*^9, 3.576838424766855*^9, 3.577450730886137*^9, 
   3.5774511266797123`*^9, 3.5774512056226063`*^9, 3.577451525637117*^9, 
   3.5774515827944*^9, 3.577451788678363*^9, 3.5776056121154876`*^9, 
   3.5776118708869433`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.5`\\)\[NoBreak] in \[NoBreak]\\!\\(\\\"y\
\\\" \[Rule] 0.5`\\)\[NoBreak] is not a valid value for an attribute in an \
XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903064041*^9, 3.5731520040018144`*^9, 
   3.575860265420375*^9, 3.576214804047736*^9, {3.576214843905736*^9, 
   3.576214868679736*^9}, 3.57621546303045*^9, {3.576215571615307*^9, 
   3.576215578406986*^9}, 3.5762159252566676`*^9, 3.5762160058517265`*^9, 
   3.5762160617593164`*^9, 3.576216161484739*^9, 3.5762168784779897`*^9, 
   3.576216964165558*^9, 3.5762170197791185`*^9, 3.576217140158155*^9, {
   3.5762172016283016`*^9, 3.5762172295740957`*^9}, 3.5762412324761767`*^9, 
   3.57624130948452*^9, {3.576241380694891*^9, 3.5762414027689295`*^9}, 
   3.5762414784290624`*^9, 3.576241556210799*^9, 3.576836871529907*^9, 
   3.576838273098689*^9, 3.576838424766855*^9, 3.577450730886137*^9, 
   3.5774511266797123`*^9, 3.5774512056226063`*^9, 3.577451525637117*^9, 
   3.5774515827944*^9, 3.577451788678363*^9, 3.5776056121154876`*^9, 
   3.5776118708879433`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"Export", "::", "autofix"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Malformed symbolic XML expression encountered. This may \
result in unexpected XML data. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/Export\\\", ButtonNote -> \\\"Export::autofix\\\"]\
\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903064041*^9, 3.5731520040018144`*^9, 
   3.575860265420375*^9, 3.576214804047736*^9, {3.576214843905736*^9, 
   3.576214868679736*^9}, 3.57621546303045*^9, {3.576215571615307*^9, 
   3.576215578406986*^9}, 3.5762159252566676`*^9, 3.5762160058517265`*^9, 
   3.5762160617593164`*^9, 3.576216161484739*^9, 3.5762168784779897`*^9, 
   3.576216964165558*^9, 3.5762170197791185`*^9, 3.576217140158155*^9, {
   3.5762172016283016`*^9, 3.5762172295740957`*^9}, 3.5762412324761767`*^9, 
   3.57624130948452*^9, {3.576241380694891*^9, 3.5762414027689295`*^9}, 
   3.5762414784290624`*^9, 3.576241556210799*^9, 3.576836871529907*^9, 
   3.576838273098689*^9, 3.576838424766855*^9, 3.577450730886137*^9, 
   3.5774511266797123`*^9, 3.5774512056226063`*^9, 3.577451525637117*^9, 
   3.5774515827944*^9, 3.577451788678363*^9, 3.5776056121154876`*^9, 
   3.5776118708899436`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \[NoBreak]\\!\\(\\*StyleBox[\\(Export :: \
autofix\\), \\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this \
calculation. \\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", \
ButtonStyle->\\\"Link\\\", ButtonFrame->None, \
ButtonData:>\\\"paclet:ref/message/General/stop\\\", ButtonNote -> \
\\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903064041*^9, 3.5731520040018144`*^9, 
   3.575860265420375*^9, 3.576214804047736*^9, {3.576214843905736*^9, 
   3.576214868679736*^9}, 3.57621546303045*^9, {3.576215571615307*^9, 
   3.576215578406986*^9}, 3.5762159252566676`*^9, 3.5762160058517265`*^9, 
   3.5762160617593164`*^9, 3.576216161484739*^9, 3.5762168784779897`*^9, 
   3.576216964165558*^9, 3.5762170197791185`*^9, 3.576217140158155*^9, {
   3.5762172016283016`*^9, 3.5762172295740957`*^9}, 3.5762412324761767`*^9, 
   3.57624130948452*^9, {3.576241380694891*^9, 3.5762414027689295`*^9}, 
   3.5762414784290624`*^9, 3.576241556210799*^9, 3.576836871529907*^9, 
   3.576838273098689*^9, 3.576838424766855*^9, 3.577450730886137*^9, 
   3.5774511266797123`*^9, 3.5774512056226063`*^9, 3.577451525637117*^9, 
   3.5774515827944*^9, 3.577451788678363*^9, 3.5776056121154876`*^9, 
   3.5776118708909435`*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"XMLElement", "::", "attrhs"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"\[NoBreak]\\!\\(0.75`\\)\[NoBreak] in \
\[NoBreak]\\!\\(\\\"y\\\" \[Rule] 0.75`\\)\[NoBreak] is not a valid value for \
an attribute in an XMLElement. The value of the attribute must be a string. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/XMLElement\\\", ButtonNote -> \
\\\"XMLElement::attrhs\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903064041*^9, 3.5731520040018144`*^9, 
   3.575860265420375*^9, 3.576214804047736*^9, {3.576214843905736*^9, 
   3.576214868679736*^9}, 3.57621546303045*^9, {3.576215571615307*^9, 
   3.576215578406986*^9}, 3.5762159252566676`*^9, 3.5762160058517265`*^9, 
   3.5762160617593164`*^9, 3.576216161484739*^9, 3.5762168784779897`*^9, 
   3.576216964165558*^9, 3.5762170197791185`*^9, 3.576217140158155*^9, {
   3.5762172016283016`*^9, 3.5762172295740957`*^9}, 3.5762412324761767`*^9, 
   3.57624130948452*^9, {3.576241380694891*^9, 3.5762414027689295`*^9}, 
   3.5762414784290624`*^9, 3.576241556210799*^9, 3.576836871529907*^9, 
   3.576838273098689*^9, 3.576838424766855*^9, 3.577450730886137*^9, 
   3.5774511266797123`*^9, 3.5774512056226063`*^9, 3.577451525637117*^9, 
   3.5774515827944*^9, 3.577451788678363*^9, 3.5776056121154876`*^9, 
   3.577611870891944*^9}],

Cell[BoxData[
 RowBox[{
  StyleBox[
   RowBox[{"General", "::", "stop"}], "MessageName"], 
  RowBox[{
  ":", " "}], "\<\"Further output of \
\[NoBreak]\\!\\(\\*StyleBox[\\(XMLElement :: attrhs\\), \
\\\"MessageName\\\"]\\)\[NoBreak] will be suppressed during this calculation. \
\\!\\(\\*ButtonBox[\\\"\[RightSkeleton]\\\", ButtonStyle->\\\"Link\\\", \
ButtonFrame->None, ButtonData:>\\\"paclet:ref/message/General/stop\\\", \
ButtonNote -> \\\"General::stop\\\"]\\)\"\>"}]], "Message", "MSG",
 CellChangeTimes->{
  3.573145236286723*^9, 3.573151903064041*^9, 3.5731520040018144`*^9, 
   3.575860265420375*^9, 3.576214804047736*^9, {3.576214843905736*^9, 
   3.576214868679736*^9}, 3.57621546303045*^9, {3.576215571615307*^9, 
   3.576215578406986*^9}, 3.5762159252566676`*^9, 3.5762160058517265`*^9, 
   3.5762160617593164`*^9, 3.576216161484739*^9, 3.5762168784779897`*^9, 
   3.576216964165558*^9, 3.5762170197791185`*^9, 3.576217140158155*^9, {
   3.5762172016283016`*^9, 3.5762172295740957`*^9}, 3.5762412324761767`*^9, 
   3.57624130948452*^9, {3.576241380694891*^9, 3.5762414027689295`*^9}, 
   3.5762414784290624`*^9, 3.576241556210799*^9, 3.576836871529907*^9, 
   3.576838273098689*^9, 3.576838424766855*^9, 3.577450730886137*^9, 
   3.5774511266797123`*^9, 3.5774512056226063`*^9, 3.577451525637117*^9, 
   3.5774515827944*^9, 3.577451788678363*^9, 3.5776056121154876`*^9, 
   3.5776118708929443`*^9}],

Cell[BoxData["\<\"HydraulicPressureCompensatingValveG.xml\"\>"], "Output",
 CellChangeTimes->{
  3.533153910703125*^9, 3.533154006515625*^9, 3.533273391423853*^9, 
   3.5347564611703386`*^9, 3.5347566009833183`*^9, 3.5347567087301044`*^9, 
   3.5381370220280676`*^9, 3.538722952228875*^9, 3.538977591599161*^9, 
   3.554715620905321*^9, 3.5719772226517305`*^9, 3.5731451212541437`*^9, 
   3.5731452366577444`*^9, 3.573151903099043*^9, 3.5731520040368166`*^9, 
   3.5758602654515595`*^9, 3.576214804081736*^9, {3.576214843938736*^9, 
   3.576214868716736*^9}, 3.5762154630604525`*^9, {3.5762155716413097`*^9, 
   3.5762155784339886`*^9}, 3.576215925325674*^9, 3.576216005896731*^9, 
   3.5762160618353243`*^9, 3.5762161615487385`*^9, 3.576216878550997*^9, 
   3.5762169642265635`*^9, 3.576217019854126*^9, 3.5762171402321625`*^9, {
   3.5762172016943083`*^9, 3.5762172296361017`*^9}, 3.5762412324917765`*^9, 
   3.5762413095157204`*^9, {3.576241380726091*^9, 3.57624140280013*^9}, 
   3.5762414784602623`*^9, 3.576241556241999*^9, 3.576836871715907*^9, 
   3.576838273284708*^9, 3.576838424801858*^9, 3.577450730895138*^9, 
   3.577451126690714*^9, 3.5774512056636105`*^9, 3.5774515256771126`*^9, 
   3.577451582831397*^9, 3.577451788719363*^9, 3.577605612150491*^9, 
   3.577611870893944*^9}]
}, Open  ]]
}, Open  ]]
}, Closed]]
}, Open  ]]
},
WindowSize->{1106, 597},
WindowMargins->{{Automatic, 96}, {Automatic, -9}},
Magnification->0.8999999761581421,
FrontEndVersion->"8.0 for Microsoft Windows (64-bit) (October 6, 2011)",
StyleDefinitions->FrontEnd`FileName[{"Creative"}, "NaturalColor.nb", 
  CharacterEncoding -> "WindowsANSI"]
]
(* End of Notebook Content *)

(* Internal cache information *)
(*CellTagsOutline
CellTagsIndex->{}
*)
(*CellTagsIndex
CellTagsIndex->{}
*)
(*NotebookFileOutline
Notebook[{
Cell[CellGroupData[{
Cell[579, 22, 211, 3, 58, "Title"],
Cell[CellGroupData[{
Cell[815, 29, 96, 1, 67, "Section"],
Cell[914, 32, 431, 11, 73, "Input"],
Cell[1348, 45, 151, 2, 36, "Input"],
Cell[1502, 49, 124, 3, 36, "Input"],
Cell[1629, 54, 373, 9, 36, "Input"],
Cell[CellGroupData[{
Cell[2027, 67, 149, 2, 33, "Subsection"],
Cell[2179, 71, 1191, 23, 275, "Input"],
Cell[3373, 96, 775, 14, 36, "Input"]
}, Open  ]]
}, Open  ]],
Cell[CellGroupData[{
Cell[4197, 116, 143, 2, 67, "Section"],
Cell[4343, 120, 1204, 29, 147, "Input"],
Cell[CellGroupData[{
Cell[5572, 153, 97, 1, 28, "Subsection"],
Cell[5672, 156, 833, 19, 57, "Input"],
Cell[6508, 177, 2367, 44, 111, "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.}],
Cell[8878, 223, 530, 11, 111, "Input"],
Cell[9411, 236, 1068, 21, 112, "Input"],
Cell[10482, 259, 1579, 34, 199, "Input"],
Cell[CellGroupData[{
Cell[12086, 297, 107, 2, 45, "Input"],
Cell[12196, 301, 3777, 56, 62, "Message"],
Cell[15976, 359, 1328, 22, 62, "Message"],
Cell[17307, 383, 1475, 24, 62, "Message"],
Cell[18785, 409, 1326, 22, 62, "Message"],
Cell[20114, 433, 1473, 24, 62, "Message"],
Cell[21590, 459, 1328, 22, 62, "Message"],
Cell[22921, 483, 1402, 23, 62, "Message"],
Cell[24326, 508, 3225, 46, 62, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[27612, 561, 245, 3, 40, "Section"],
Cell[CellGroupData[{
Cell[27882, 568, 100, 1, 41, "Subsection"],
Cell[27985, 571, 1690, 35, 241, "Input"],
Cell[29678, 608, 1704, 31, 97, "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.}],
Cell[31385, 641, 912, 21, 121, "Input"],
Cell[32300, 664, 748, 15, 97, "Input"],
Cell[33051, 681, 812, 18, 121, "Input"],
Cell[33866, 701, 307, 7, 47, "Input"],
Cell[34176, 710, 346, 9, 97, "Input"],
Cell[CellGroupData[{
Cell[34547, 723, 107, 2, 47, "Input"],
Cell[34657, 727, 1702, 27, 62, "Message"],
Cell[36362, 756, 1700, 27, 62, "Message"],
Cell[38065, 785, 1700, 27, 62, "Message"],
Cell[39768, 814, 1650, 27, 62, "Message"],
Cell[41421, 843, 4186, 64, 62, "Message"],
Cell[45610, 909, 1580, 26, 62, "Message"],
Cell[47193, 937, 1727, 28, 62, "Message"],
Cell[48923, 967, 1580, 26, 62, "Message"],
Cell[50506, 995, 1725, 28, 62, "Message"],
Cell[52234, 1025, 1580, 26, 62, "Message"],
Cell[53817, 1053, 1652, 27, 62, "Message"],
Cell[55472, 1082, 1093, 15, 62, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[56626, 1104, 200, 3, 40, "Section"],
Cell[CellGroupData[{
Cell[56851, 1111, 100, 1, 41, "Subsection"],
Cell[56954, 1114, 1641, 34, 241, "Input"],
Cell[58598, 1150, 1704, 31, 97, "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.}],
Cell[60305, 1183, 1177, 27, 169, "Input"],
Cell[61485, 1212, 750, 17, 143, "Input"],
Cell[62238, 1231, 816, 18, 121, "Input"],
Cell[63057, 1251, 305, 7, 47, "Input"],
Cell[63365, 1260, 346, 9, 97, "Input"],
Cell[CellGroupData[{
Cell[63736, 1273, 107, 2, 47, "Input"],
Cell[63846, 1277, 1698, 27, 62, "Message"],
Cell[65547, 1306, 1698, 27, 62, "Message"],
Cell[67248, 1335, 1700, 27, 62, "Message"],
Cell[68951, 1364, 1646, 27, 62, "Message"],
Cell[70600, 1393, 4186, 63, 62, "Message"],
Cell[74789, 1458, 1578, 26, 62, "Message"],
Cell[76370, 1486, 1723, 28, 62, "Message"],
Cell[78096, 1516, 1576, 26, 62, "Message"],
Cell[79675, 1544, 1725, 28, 62, "Message"],
Cell[81403, 1574, 1578, 26, 62, "Message"],
Cell[82984, 1602, 1652, 27, 62, "Message"],
Cell[84639, 1631, 1077, 15, 62, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[85777, 1653, 145, 2, 40, "Section"],
Cell[CellGroupData[{
Cell[85947, 1659, 100, 1, 41, "Subsection"],
Cell[86050, 1662, 1586, 33, 241, "Input"],
Cell[87639, 1697, 1704, 31, 97, "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.}],
Cell[89346, 1730, 542, 13, 97, "Input"],
Cell[89891, 1745, 320, 9, 98, "Text"],
Cell[90214, 1756, 356, 9, 98, "Text"],
Cell[90573, 1767, 116, 1, 33, "Text"],
Cell[90692, 1770, 741, 20, 169, "Input"],
Cell[CellGroupData[{
Cell[91458, 1794, 107, 2, 47, "Input"],
Cell[91568, 1798, 1681, 27, 62, "Message"],
Cell[93252, 1827, 1706, 27, 62, "Message"],
Cell[94961, 1856, 4087, 63, 62, "Message"],
Cell[99051, 1921, 1574, 26, 62, "Message"],
Cell[100628, 1949, 1723, 28, 62, "Message"],
Cell[102354, 1979, 1576, 26, 62, "Message"],
Cell[103933, 2007, 1723, 28, 62, "Message"],
Cell[105659, 2037, 1574, 26, 62, "Message"],
Cell[107236, 2065, 1648, 27, 62, "Message"],
Cell[108887, 2094, 1082, 15, 62, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[110030, 2116, 74, 1, 40, "Section"],
Cell[CellGroupData[{
Cell[110129, 2121, 68, 1, 41, "Subsection"],
Cell[110200, 2124, 115, 3, 33, "Text"],
Cell[CellGroupData[{
Cell[110340, 2131, 7568, 96, 119, "Graphics"],
Cell[117911, 2229, 12170, 152, 203, "Graphics"]
}, Open  ]]
}, Open  ]],
Cell[CellGroupData[{
Cell[130130, 2387, 67, 1, 41, "Subsection"],
Cell[130200, 2390, 739, 18, 217, "Input"]
}, Open  ]],
Cell[CellGroupData[{
Cell[130976, 2413, 100, 1, 41, "Subsection"],
Cell[131079, 2416, 1675, 35, 241, "Input"],
Cell[132757, 2453, 1304, 30, 169, "Input"],
Cell[134064, 2485, 349, 9, 97, "Input"],
Cell[134416, 2496, 2992, 70, 384, "Input"],
Cell[137411, 2568, 949, 27, 121, "Input"],
Cell[138363, 2597, 1064, 28, 121, "Input"],
Cell[139430, 2627, 487, 13, 121, "Input"],
Cell[139920, 2642, 993, 24, 251, "Input"],
Cell[140916, 2668, 820, 22, 144, "Input"],
Cell[141739, 2692, 1027, 22, 169, "Input"],
Cell[142769, 2716, 384, 9, 47, "Input"],
Cell[CellGroupData[{
Cell[143178, 2729, 63, 1, 47, "Input"],
Cell[143244, 2732, 4087, 62, 62, "Message"],
Cell[147334, 2796, 1557, 26, 62, "Message"],
Cell[148894, 2824, 1670, 27, 62, "Message"],
Cell[150567, 2853, 1555, 26, 62, "Message"],
Cell[152125, 2881, 1670, 27, 62, "Message"],
Cell[153798, 2910, 1555, 26, 62, "Message"],
Cell[155356, 2938, 1629, 27, 62, "Message"],
Cell[156988, 2967, 1702, 28, 62, "Message"],
Cell[158693, 2997, 1632, 27, 62, "Message"],
Cell[160328, 3026, 1078, 15, 62, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[161467, 3048, 141, 2, 40, "Section"],
Cell[CellGroupData[{
Cell[161633, 3054, 68, 1, 41, "Subsection"],
Cell[161704, 3057, 115, 3, 33, "Text"],
Cell[CellGroupData[{
Cell[161844, 3064, 7568, 96, 119, "Graphics"],
Cell[169415, 3162, 12170, 152, 203, "Graphics"]
}, Open  ]]
}, Open  ]],
Cell[CellGroupData[{
Cell[181634, 3320, 100, 1, 41, "Subsection"],
Cell[181737, 3323, 1637, 35, 241, "Input"],
Cell[183377, 3360, 1516, 35, 192, "Input"],
Cell[184896, 3397, 349, 9, 97, "Input"],
Cell[185248, 3408, 4225, 95, 504, "Input"],
Cell[189476, 3505, 1758, 51, 192, "Input"],
Cell[191237, 3558, 2172, 57, 192, "Input"],
Cell[193412, 3617, 632, 16, 144, "Input"],
Cell[194047, 3635, 1549, 32, 323, "Input"],
Cell[195599, 3669, 1174, 29, 192, "Input"],
Cell[196776, 3700, 1267, 26, 192, "Input"],
Cell[198046, 3728, 507, 10, 47, "Input"],
Cell[198556, 3740, 117, 3, 47, "Input"],
Cell[CellGroupData[{
Cell[198698, 3747, 63, 1, 47, "Input"],
Cell[198764, 3750, 4154, 61, 62, "Message"],
Cell[202921, 3813, 1876, 30, 62, "Message"],
Cell[204800, 3845, 2025, 32, 62, "Message"],
Cell[206828, 3879, 1876, 30, 62, "Message"],
Cell[208707, 3911, 2021, 32, 62, "Message"],
Cell[210731, 3945, 1874, 30, 62, "Message"],
Cell[212608, 3977, 1948, 31, 62, "Message"],
Cell[214559, 4010, 1991, 31, 62, "Message"],
Cell[216553, 4043, 1953, 31, 62, "Message"],
Cell[218509, 4076, 1214, 17, 62, "Output"]
}, Open  ]],
Cell[CellGroupData[{
Cell[219760, 4098, 98, 1, 47, "Input"],
Cell[219861, 4101, 1319, 17, 62, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[221241, 4125, 240, 4, 40, "Section"],
Cell[CellGroupData[{
Cell[221506, 4133, 68, 1, 41, "Subsection"],
Cell[221577, 4136, 115, 3, 33, "Text"]
}, Open  ]],
Cell[CellGroupData[{
Cell[221729, 4144, 100, 1, 41, "Subsection"],
Cell[221832, 4147, 1663, 35, 217, "Input"],
Cell[223498, 4184, 1901, 42, 217, "Input"],
Cell[225402, 4228, 349, 9, 97, "Input"],
Cell[225754, 4239, 3770, 85, 431, "Input"],
Cell[229527, 4326, 91, 1, 47, "Input"],
Cell[229621, 4329, 1472, 40, 144, "Input"],
Cell[231096, 4371, 1799, 43, 144, "Input"],
Cell[232898, 4416, 805, 19, 144, "Input"],
Cell[233706, 4437, 1064, 24, 275, "Input"],
Cell[234773, 4463, 116, 2, 47, "Input"],
Cell[234892, 4467, 1671, 34, 192, "Input"],
Cell[236566, 4503, 1592, 31, 217, "Input"],
Cell[238161, 4536, 332, 8, 47, "Input"],
Cell[238496, 4546, 671, 13, 47, "Input"],
Cell[CellGroupData[{
Cell[239192, 4563, 63, 1, 47, "Input"],
Cell[239258, 4566, 5296, 76, 62, "Message"],
Cell[244557, 4644, 2113, 33, 62, "Message"],
Cell[246673, 4679, 2264, 35, 62, "Message"],
Cell[248940, 4716, 2113, 33, 62, "Message"],
Cell[251056, 4751, 2260, 35, 62, "Message"],
Cell[253319, 4788, 2113, 33, 62, "Message"],
Cell[255435, 4823, 2187, 34, 62, "Message"],
Cell[257625, 4859, 2264, 35, 62, "Message"],
Cell[259892, 4896, 2192, 34, 62, "Message"],
Cell[262087, 4932, 1592, 22, 62, "Output"]
}, Open  ]]
}, Closed]]
}, Closed]],
Cell[CellGroupData[{
Cell[263740, 4961, 275, 8, 58, "Section",
 Evaluatable->False],
Cell[264018, 4971, 1486, 32, 163, "Input"],
Cell[CellGroupData[{
Cell[265529, 5007, 43, 0, 33, "Subsection"],
Cell[265575, 5009, 43, 0, 26, "Text"]
}, Open  ]],
Cell[CellGroupData[{
Cell[265655, 5014, 41, 0, 33, "Subsection"],
Cell[265699, 5016, 70, 0, 26, "Text"]
}, Open  ]],
Cell[CellGroupData[{
Cell[265806, 5021, 46, 0, 33, "Subsection"],
Cell[265855, 5023, 1714, 44, 217, "Input"],
Cell[267572, 5069, 701, 18, 91, "Input"]
}, Open  ]],
Cell[CellGroupData[{
Cell[268310, 5092, 45, 0, 33, "Subsection"],
Cell[268358, 5094, 524, 15, 73, "Input"],
Cell[268885, 5111, 42, 0, 26, "Text"],
Cell[268930, 5113, 281, 7, 36, "Input"],
Cell[269214, 5122, 117, 1, 26, "Text"],
Cell[269334, 5125, 1569, 42, 127, "Input"],
Cell[270906, 5169, 29, 0, 26, "Text"],
Cell[270938, 5171, 660, 16, 109, "Input"],
Cell[271601, 5189, 132, 1, 26, "Text"],
Cell[271736, 5192, 266, 7, 36, "Input"],
Cell[272005, 5201, 92, 1, 26, "Text"],
Cell[272100, 5204, 327, 8, 36, "Input"],
Cell[CellGroupData[{
Cell[272452, 5216, 63, 1, 36, "Input"],
Cell[272518, 5219, 1842, 30, 19, "Message"],
Cell[274363, 5251, 1840, 30, 19, "Message"],
Cell[276206, 5283, 1840, 30, 19, "Message"],
Cell[278049, 5315, 1838, 30, 19, "Message"],
Cell[279890, 5347, 4806, 71, 110, "Message"],
Cell[284699, 5420, 1768, 29, 19, "Message"],
Cell[286470, 5451, 1885, 30, 19, "Message"],
Cell[288358, 5483, 1766, 29, 19, "Message"],
Cell[290127, 5514, 1883, 30, 19, "Message"],
Cell[292013, 5546, 1768, 29, 19, "Message"],
Cell[293784, 5577, 1842, 30, 19, "Message"],
Cell[295629, 5609, 1885, 30, 19, "Message"],
Cell[297517, 5641, 1843, 30, 19, "Message"],
Cell[299363, 5673, 1070, 15, 36, "Output"]
}, Open  ]]
}, Closed]]
}, Closed]],
Cell[CellGroupData[{
Cell[300494, 5695, 239, 7, 58, "Section",
 Evaluatable->False],
Cell[300736, 5704, 1517, 33, 241, "Input"],
Cell[CellGroupData[{
Cell[302278, 5741, 43, 0, 41, "Subsection"],
Cell[302324, 5743, 43, 0, 33, "Text"]
}, Open  ]],
Cell[CellGroupData[{
Cell[302404, 5748, 41, 0, 41, "Subsection"],
Cell[302448, 5750, 70, 0, 33, "Text"]
}, Open  ]],
Cell[CellGroupData[{
Cell[302555, 5755, 46, 0, 41, "Subsection"],
Cell[302604, 5757, 1837, 47, 312, "Input"],
Cell[304444, 5806, 701, 18, 121, "Input"]
}, Open  ]],
Cell[CellGroupData[{
Cell[305182, 5829, 45, 0, 41, "Subsection"],
Cell[305230, 5831, 42, 0, 33, "Text"],
Cell[305275, 5833, 230, 6, 47, "Input"],
Cell[305508, 5841, 132, 1, 33, "Text"],
Cell[305643, 5844, 1517, 42, 169, "Input"],
Cell[307163, 5888, 29, 0, 33, "Text"],
Cell[307195, 5890, 660, 16, 144, "Input"],
Cell[307858, 5908, 266, 7, 47, "Input"],
Cell[308127, 5917, 92, 1, 33, "Text"],
Cell[308222, 5920, 327, 8, 47, "Input"],
Cell[CellGroupData[{
Cell[308574, 5932, 63, 1, 47, "Input"],
Cell[308640, 5935, 1803, 30, 62, "Message"],
Cell[310446, 5967, 1805, 30, 62, "Message"],
Cell[312254, 5999, 1805, 30, 62, "Message"],
Cell[314062, 6031, 1801, 30, 62, "Message"],
Cell[315866, 6063, 4769, 69, 62, "Message"],
Cell[320638, 6134, 1731, 29, 62, "Message"],
Cell[322372, 6165, 1846, 30, 62, "Message"],
Cell[324221, 6197, 1729, 29, 62, "Message"],
Cell[325953, 6228, 1846, 30, 62, "Message"],
Cell[327802, 6260, 1729, 29, 62, "Message"],
Cell[329534, 6291, 1803, 30, 62, "Message"],
Cell[331340, 6323, 1846, 30, 62, "Message"],
Cell[333189, 6355, 1806, 30, 62, "Message"],
Cell[334998, 6387, 1082, 15, 62, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[336141, 6409, 264, 8, 58, "Section",
 Evaluatable->False],
Cell[336408, 6419, 1542, 33, 163, "Input"],
Cell[CellGroupData[{
Cell[337975, 6456, 43, 0, 33, "Subsection"],
Cell[338021, 6458, 137, 1, 26, "Text"]
}, Open  ]],
Cell[338173, 6462, 41, 0, 33, "Subsection"],
Cell[CellGroupData[{
Cell[338239, 6466, 46, 0, 27, "Subsection"],
Cell[338288, 6468, 2195, 55, 271, "Input"],
Cell[340486, 6525, 550, 14, 91, "Input"],
Cell[341039, 6541, 711, 18, 91, "Input"]
}, Open  ]],
Cell[CellGroupData[{
Cell[341787, 6564, 45, 0, 33, "Subsection"],
Cell[341835, 6566, 64, 0, 26, "Text"],
Cell[CellGroupData[{
Cell[341924, 6570, 372, 9, 55, "Input"],
Cell[342299, 6581, 1189, 18, 36, "Output"]
}, Open  ]],
Cell[343503, 6602, 42, 0, 26, "Text"],
Cell[343548, 6604, 230, 6, 36, "Input"],
Cell[343781, 6612, 1465, 39, 127, "Input"],
Cell[345249, 6653, 29, 0, 26, "Text"],
Cell[345281, 6655, 607, 15, 91, "Input"],
Cell[345891, 6672, 116, 1, 26, "Text"],
Cell[346010, 6675, 276, 7, 36, "Input"],
Cell[346289, 6684, 387, 9, 36, "Input"],
Cell[346679, 6695, 420, 10, 91, "Input"],
Cell[CellGroupData[{
Cell[347124, 6709, 63, 1, 36, "Input"],
Cell[347190, 6712, 1675, 28, 37, "Message"],
Cell[348868, 6742, 1675, 28, 37, "Message"],
Cell[350546, 6772, 1675, 28, 37, "Message"],
Cell[352224, 6802, 1758, 29, 19, "Message"],
Cell[353985, 6833, 1764, 29, 19, "Message"],
Cell[355752, 6864, 1764, 29, 19, "Message"],
Cell[357519, 6895, 1764, 29, 19, "Message"],
Cell[359286, 6926, 1760, 29, 19, "Message"],
Cell[361049, 6957, 4944, 73, 95, "Message"],
Cell[365996, 7032, 1690, 28, 19, "Message"],
Cell[367689, 7062, 1807, 29, 19, "Message"],
Cell[369499, 7093, 1688, 28, 19, "Message"],
Cell[371190, 7123, 1805, 29, 19, "Message"],
Cell[372998, 7154, 1690, 28, 19, "Message"],
Cell[374691, 7184, 1764, 29, 19, "Message"],
Cell[376458, 7215, 1807, 29, 19, "Message"],
Cell[378268, 7246, 1767, 29, 19, "Message"],
Cell[380038, 7277, 1057, 15, 36, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[381156, 7299, 211, 4, 40, "Section",
 Evaluatable->False],
Cell[381370, 7305, 1564, 33, 163, "Input"],
Cell[CellGroupData[{
Cell[382959, 7342, 43, 0, 33, "Subsection"],
Cell[383005, 7344, 43, 0, 26, "Text"]
}, Open  ]],
Cell[CellGroupData[{
Cell[383085, 7349, 41, 0, 33, "Subsection"],
Cell[383129, 7351, 70, 0, 26, "Text"]
}, Open  ]],
Cell[CellGroupData[{
Cell[383236, 7356, 46, 0, 33, "Subsection"],
Cell[383285, 7358, 1049, 26, 133, "Input"],
Cell[384337, 7386, 905, 21, 109, "Input"]
}, Open  ]],
Cell[CellGroupData[{
Cell[385279, 7412, 45, 0, 33, "Subsection"],
Cell[385327, 7414, 42, 0, 26, "Text"],
Cell[385372, 7416, 350, 10, 52, "Input"],
Cell[385725, 7428, 132, 1, 26, "Text"],
Cell[385860, 7431, 1430, 36, 130, "Input"],
Cell[387293, 7469, 29, 0, 26, "Text"],
Cell[387325, 7471, 891, 19, 109, "Input"],
Cell[CellGroupData[{
Cell[388241, 7494, 49, 0, 36, "Input"],
Cell[388293, 7496, 726, 19, 36, "Output"]
}, Open  ]],
Cell[389034, 7518, 440, 10, 36, "Input"],
Cell[389477, 7530, 270, 6, 73, "Input"],
Cell[CellGroupData[{
Cell[389772, 7540, 101, 1, 36, "Input"],
Cell[389876, 7543, 2412, 67, 112, "Output"]
}, Open  ]],
Cell[392303, 7613, 92, 1, 26, "Text"],
Cell[CellGroupData[{
Cell[392420, 7618, 63, 1, 36, "Input"],
Cell[392486, 7621, 2067, 33, 19, "Message"],
Cell[394556, 7656, 2067, 33, 19, "Message"],
Cell[396626, 7691, 2067, 33, 19, "Message"],
Cell[398696, 7726, 2063, 33, 19, "Message"],
Cell[400762, 7761, 4919, 72, 110, "Message"],
Cell[405684, 7835, 1992, 32, 19, "Message"],
Cell[407679, 7869, 2112, 33, 19, "Message"],
Cell[409794, 7904, 1995, 32, 19, "Message"],
Cell[411792, 7938, 2110, 33, 19, "Message"],
Cell[413905, 7973, 1995, 32, 19, "Message"],
Cell[415903, 8007, 2069, 33, 19, "Message"],
Cell[417975, 8042, 2110, 33, 19, "Message"],
Cell[420088, 8077, 2072, 33, 19, "Message"],
Cell[422163, 8112, 1352, 19, 36, "Output"]
}, Open  ]]
}, Open  ]]
}, Open  ]],
Cell[CellGroupData[{
Cell[423576, 8138, 240, 3, 67, "Section"],
Cell[423819, 8143, 122, 2, 36, "Input"],
Cell[CellGroupData[{
Cell[423966, 8149, 67, 1, 25, "Subsection"],
Cell[424036, 8152, 739, 18, 163, "Input"]
}, Open  ]],
Cell[CellGroupData[{
Cell[424812, 8175, 100, 1, 32, "Subsection"],
Cell[424915, 8178, 1757, 38, 163, "Input"],
Cell[426675, 8218, 2009, 37, 91, "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.}],
Cell[428687, 8257, 3199, 72, 199, "Input"],
Cell[431889, 8331, 855, 20, 109, "Input"],
Cell[432747, 8353, 1094, 19, 36, "Input"],
Cell[433844, 8374, 1852, 39, 210, "Input"],
Cell[435699, 8415, 4267, 81, 145, "Input"],
Cell[439969, 8498, 917, 22, 109, "Input"],
Cell[440889, 8522, 240, 6, 36, "Input"],
Cell[CellGroupData[{
Cell[441154, 8532, 107, 2, 36, "Input"],
Cell[441264, 8536, 1297, 22, 62, "Message"],
Cell[442564, 8560, 1295, 22, 62, "Message"],
Cell[443862, 8584, 1297, 22, 62, "Message"],
Cell[445162, 8608, 1291, 22, 62, "Message"],
Cell[446456, 8632, 3520, 52, 62, "Message"],
Cell[449979, 8686, 1223, 21, 62, "Message"],
Cell[451205, 8709, 1338, 22, 62, "Message"],
Cell[452546, 8733, 1223, 21, 62, "Message"],
Cell[453772, 8756, 1336, 22, 62, "Message"],
Cell[455111, 8780, 1221, 21, 62, "Message"],
Cell[456335, 8803, 1297, 22, 62, "Message"],
Cell[457635, 8827, 1340, 22, 62, "Message"],
Cell[458978, 8851, 1298, 22, 62, "Message"],
Cell[460279, 8875, 1687, 23, 62, "Output"]
}, Open  ]],
Cell[CellGroupData[{
Cell[462003, 8903, 109, 1, 36, "Input"],
Cell[462115, 8906, 3269, 82, 62, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[465445, 8995, 291, 4, 40, "Section"],
Cell[CellGroupData[{
Cell[465761, 9003, 100, 1, 33, "Subsection"],
Cell[465864, 9006, 1444, 33, 163, "Input"],
Cell[467311, 9041, 1018, 22, 91, "Input"],
Cell[468332, 9065, 783, 19, 127, "Input"],
Cell[469118, 9086, 3524, 69, 235, "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.}],
Cell[472645, 9157, 162, 4, 36, "Input"],
Cell[472810, 9163, 1149, 24, 130, "Input"],
Cell[473962, 9189, 166, 2, 36, "Input"],
Cell[474131, 9193, 1776, 43, 137, "Input"],
Cell[475910, 9238, 765, 18, 91, "Input"],
Cell[476678, 9258, 381, 9, 36, "Input"],
Cell[477062, 9269, 224, 6, 36, "Input"],
Cell[477289, 9277, 275, 8, 36, "Input"],
Cell[CellGroupData[{
Cell[477589, 9289, 107, 2, 36, "Input"],
Cell[477699, 9293, 1938, 31, 19, "Message"],
Cell[479640, 9326, 1938, 31, 19, "Message"],
Cell[481581, 9359, 1938, 31, 19, "Message"],
Cell[483522, 9392, 1934, 31, 19, "Message"],
Cell[485459, 9425, 4456, 67, 95, "Message"],
Cell[489918, 9494, 1862, 30, 19, "Message"],
Cell[491783, 9526, 2013, 32, 19, "Message"],
Cell[493799, 9560, 1862, 30, 19, "Message"],
Cell[495664, 9592, 2011, 32, 19, "Message"],
Cell[497678, 9626, 1864, 30, 19, "Message"],
Cell[499545, 9658, 1938, 31, 19, "Message"],
Cell[501486, 9691, 1979, 31, 19, "Message"],
Cell[503468, 9724, 1941, 31, 19, "Message"],
Cell[505412, 9757, 1373, 19, 36, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[506846, 9783, 267, 4, 40, "Section"],
Cell[CellGroupData[{
Cell[507138, 9791, 100, 1, 33, "Subsection"],
Cell[507241, 9794, 1473, 34, 163, "Input"],
Cell[508717, 9830, 1015, 21, 91, "Input"],
Cell[509735, 9853, 410, 10, 73, "Input"],
Cell[510148, 9865, 571, 15, 91, "Input"],
Cell[510722, 9882, 3596, 70, 235, "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.}],
Cell[514321, 9954, 160, 4, 36, "Input"],
Cell[514484, 9960, 973, 20, 120, "Input"],
Cell[515460, 9982, 373, 10, 55, "Input"],
Cell[CellGroupData[{
Cell[515858, 9996, 42, 0, 36, "Input"],
Cell[515903, 9998, 461, 12, 38, "Output"]
}, Open  ]],
Cell[516379, 10013, 1303, 30, 102, "Input"],
Cell[517685, 10045, 765, 18, 91, "Input"],
Cell[518453, 10065, 386, 8, 36, "Input"],
Cell[518842, 10075, 224, 6, 36, "Input"],
Cell[519069, 10083, 215, 6, 36, "Input"],
Cell[CellGroupData[{
Cell[519309, 10093, 107, 2, 36, "Input"],
Cell[519419, 10097, 1757, 28, 19, "Message"],
Cell[521179, 10127, 3738, 58, 110, "Message"],
Cell[524920, 10187, 1685, 27, 19, "Message"],
Cell[526608, 10216, 1832, 29, 19, "Message"],
Cell[528443, 10247, 1683, 27, 19, "Message"],
Cell[530129, 10276, 1830, 29, 19, "Message"],
Cell[531962, 10307, 1685, 27, 19, "Message"],
Cell[533650, 10336, 1759, 28, 19, "Message"],
Cell[535412, 10366, 1800, 28, 19, "Message"],
Cell[537215, 10396, 1762, 28, 19, "Message"],
Cell[538980, 10426, 1506, 21, 36, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[540547, 10454, 468, 6, 40, "Section"],
Cell[CellGroupData[{
Cell[541040, 10464, 100, 1, 33, "Subsection"],
Cell[541143, 10467, 1632, 36, 163, "Input"],
Cell[542778, 10505, 1565, 33, 127, "Input"],
Cell[544346, 10540, 438, 11, 73, "Input"],
Cell[544787, 10553, 571, 15, 91, "Input"],
Cell[545361, 10570, 3696, 72, 235, "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.}],
Cell[549060, 10644, 1179, 23, 156, "Input"],
Cell[550242, 10669, 373, 10, 55, "Input"],
Cell[550618, 10681, 1552, 33, 125, "Input"],
Cell[552173, 10716, 902, 18, 91, "Input"],
Cell[553078, 10736, 440, 9, 36, "Input"],
Cell[553521, 10747, 485, 11, 36, "Input"],
Cell[554009, 10760, 215, 6, 36, "Input"],
Cell[CellGroupData[{
Cell[554249, 10770, 107, 2, 36, "Input"],
Cell[554359, 10774, 1500, 25, 18, "Message"],
Cell[555862, 10801, 3619, 55, 111, "Message"],
Cell[559484, 10858, 1428, 24, 18, "Message"],
Cell[560915, 10884, 1543, 25, 18, "Message"],
Cell[562461, 10911, 1428, 24, 18, "Message"],
Cell[563892, 10937, 1541, 25, 18, "Message"],
Cell[565436, 10964, 1426, 24, 18, "Message"],
Cell[566865, 10990, 1502, 25, 18, "Message"],
Cell[568370, 11017, 1573, 26, 18, "Message"],
Cell[569946, 11045, 1503, 25, 18, "Message"],
Cell[571452, 11072, 1380, 19, 35, "Output"]
}, Open  ]],
Cell[572847, 11094, 828, 16, 36, "Input"]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[573724, 11116, 315, 4, 40, "Section"],
Cell[CellGroupData[{
Cell[574064, 11124, 100, 1, 32, "Subsection"],
Cell[574167, 11127, 1527, 34, 163, "Input"],
Cell[575697, 11163, 1015, 21, 91, "Input"],
Cell[576715, 11186, 410, 10, 118, "Input"],
Cell[577128, 11198, 571, 15, 146, "Input"],
Cell[577702, 11215, 3652, 71, 375, "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.}],
Cell[581357, 11288, 991, 20, 120, "Input"],
Cell[582351, 11310, 424, 11, 55, "Input"],
Cell[582778, 11323, 1344, 31, 100, "Input"],
Cell[584125, 11356, 1011, 20, 91, "Input"],
Cell[585139, 11378, 386, 8, 36, "Input"],
Cell[585528, 11388, 224, 6, 36, "Input"],
Cell[585755, 11396, 215, 6, 36, "Input"],
Cell[CellGroupData[{
Cell[585995, 11406, 107, 2, 36, "Input"],
Cell[586105, 11410, 796, 15, 62, "Message"],
Cell[586904, 11427, 2418, 37, 62, "Message"],
Cell[589325, 11466, 722, 14, 62, "Message"],
Cell[590050, 11482, 867, 16, 62, "Message"],
Cell[590920, 11500, 720, 14, 62, "Message"],
Cell[591643, 11516, 869, 16, 62, "Message"],
Cell[592515, 11534, 720, 14, 62, "Message"],
Cell[593238, 11550, 794, 15, 62, "Message"],
Cell[594035, 11567, 835, 15, 62, "Message"],
Cell[594873, 11584, 799, 15, 62, "Message"],
Cell[595675, 11601, 377, 5, 62, "Output"]
}, Open  ]],
Cell[596067, 11609, 164, 4, 36, "Input"]
}, Open  ]]
}, Closed]],
Cell[CellGroupData[{
Cell[596280, 11619, 425, 6, 40, "Section"],
Cell[CellGroupData[{
Cell[596730, 11629, 100, 1, 38, "Subsection"],
Cell[596833, 11632, 1588, 36, 168, "Input"],
Cell[598424, 11670, 1270, 27, 114, "Input"],
Cell[599697, 11699, 438, 11, 78, "Input"],
Cell[600138, 11712, 571, 15, 96, "Input"],
Cell[600712, 11729, 3671, 71, 240, "Input",
 CellGroupingRules->{GroupTogetherGrouping, 10000.}],
Cell[604386, 11802, 1059, 21, 152, "Input"],
Cell[605448, 11825, 373, 10, 60, "Input"],
Cell[605824, 11837, 1452, 32, 143, "Input"],
Cell[607279, 11871, 902, 18, 96, "Input"],
Cell[608184, 11891, 440, 9, 41, "Input"],
Cell[608627, 11902, 481, 11, 41, "Input"],
Cell[609111, 11915, 215, 6, 41, "Input"],
Cell[CellGroupData[{
Cell[609351, 11925, 107, 2, 41, "Input"],
Cell[609461, 11929, 1407, 24, 62, "Message"],
Cell[610871, 11955, 3541, 54, 62, "Message"],
Cell[614415, 12011, 1333, 23, 62, "Message"],
Cell[615751, 12036, 1452, 24, 62, "Message"],
Cell[617206, 12062, 1335, 23, 62, "Message"],
Cell[618544, 12087, 1450, 24, 62, "Message"],
Cell[619997, 12113, 1335, 23, 62, "Message"],
Cell[621335, 12138, 1409, 24, 62, "Message"],
Cell[622747, 12164, 1450, 24, 62, "Message"],
Cell[624200, 12190, 1412, 24, 62, "Message"],
Cell[625615, 12216, 1292, 18, 62, "Output"]
}, Open  ]]
}, Open  ]]
}, Closed]]
}, Open  ]]
}
]
*)

(* End of internal cache information *)
